airstrings_strings_set
Add or update a single localization string key in the local workspace CSV, overwriting only specified locales while keeping the rest. Optionally push to the active environment; publish to deploy.
Instructions
Add or update one string key in the local workspace CSV (.airstrings//.csv, or .airstrings/strings.csv without a section). Overwrites the given locales of that key and keeps its other locales. Local only unless push=true, which also upserts the key in the active environment; on a protected environment that push is refused and the local change is rolled back. Returns the key, section and whether it was pushed. Use this for a few keys; after editing many keys, run airstrings_push once instead. Apps see the change only after airstrings_publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Dot-separated string key, e.g. 'onboarding.welcome'. Created if it does not exist. | |
| push | No | Default false. When true, also upsert this key in the active environment right after the local write. | |
| format | Yes | 'text' for plain strings or 'icu' for ICU MessageFormat (plurals, select, {placeholders}). Applies to every locale of the key. | |
| values | Yes | JSON object string of locale code to text, e.g. {"en": "Hello", "it": "Ciao"}. | |
| section | No | Section (group of keys) to write to; created on push if missing. Omit for unsectioned strings. |