| name | general-add-localization |
| description | Add localization keys and use them in elements or controllers. Use when adding user-facing text that should be translatable — labels, descriptions, error messages, button text, status text, or any string shown in the backoffice UI. |
| allowed-tools | Read, Write, Edit, Grep, Glob |
Add Localization
Add translatable text to the Umbraco backoffice.
What you need from the user
- The text to localize — What the user sees (e.g., "Create item", "Status")
- Which group it belongs to — Feature area (e.g.,
actions, general, content, user)
- Where it's used — Element template, controller logic, or standalone component
Step 1: Add the key to the English dictionary
File: src/assets/lang/en.ts
This file exports a UmbLocalizationDictionary — a nested object where top-level keys are groups and nested keys are the terms.
export default {
myFeature: {
myLabel: 'My Label',
myDescription: 'A description of the feature',
createFor: (name ? : ),
},
} ;