cmux Localization
Use this skill for any user-facing string change.
Hard rules
- All user-facing strings must be localized.
- Use
String(localized: "key.name", defaultValue: "English text") for Swift/AppKit/SwiftUI strings.
- Keys go in
Resources/Localizable.xcstrings with translations for all supported languages, currently English and Japanese.
- Never use bare string literals in SwiftUI
Text(), Button(), alert titles, tooltips, menus, or dialogs.
- Localization audit is required for every user-facing change.
defaultValue, English fallback text, schema descriptions, or copied English strings do not count as localization.
- For localized web/docs content, update every supported message catalog, currently
web/messages/en.json and web/messages/ja.json, plus any localized data structures carrying inline translations.
Audit checklist
Before finishing a task that changes UI, Settings rows, menus, shortcut metadata, schema/config text, docs, command/help text, alerts, or tooltips:
- Enumerate the changed user-facing surfaces.
- Verify each surface has entries for every supported locale.
- Parse touched localization files.
- Compare changed message keys across locales.
- Use
rg over changed Swift/TS/TSX/docs files for newly introduced bare English.
- State the localization audit in the final handoff, or explicitly say what could not be verified.
Related shortcut rule
Every new cmux-owned keyboard shortcut must be added to KeyboardShortcutSettings, visible/editable in Settings, supported in ~/.config/cmux/cmux.json, and documented in the keyboard shortcut and configuration docs.
Detailed reference
- Read references/audit-workflow.md for a deeper audit process, common false positives, and examples of surfaces that count as user-facing.
1---
2name: cmux-localization
3description: "Localization rules and audit workflow for cmux UI strings, settings rows, menus, shortcuts, schema/config text, docs, command/help text, alerts, tooltips, and web messages. Use whenever changing user-facing text."
4metadata:
5 source: https://skillmd.com/skills/om-scogo/cmux-localization
6---
7
8# cmux Localization
9
10Use this skill for any user-facing string change.
11
12## Hard rules
13
14- All user-facing strings must be localized.
15- Use `String(localized: "key.name", defaultValue: "English text")` for Swift/AppKit/SwiftUI strings.
16- Keys go in `Resources/Localizable.xcstrings` with translations for all supported languages, currently English and Japanese.
17- Never use bare string literals in SwiftUI `Text()`, `Button()`, alert titles, tooltips, menus, or dialogs.
18- Localization audit is required for every user-facing change.
19- `defaultValue`, English fallback text, schema descriptions, or copied English strings do not count as localization.
20- For localized web/docs content, update every supported message catalog, currently `web/messages/en.json` and `web/messages/ja.json`, plus any localized data structures carrying inline translations.
21
22## Audit checklist
23
24Before finishing a task that changes UI, Settings rows, menus, shortcut metadata, schema/config text, docs, command/help text, alerts, or tooltips:
25
261. Enumerate the changed user-facing surfaces.
272. Verify each surface has entries for every supported locale.
283. Parse touched localization files.
294. Compare changed message keys across locales.
305. Use `rg` over changed Swift/TS/TSX/docs files for newly introduced bare English.
316. State the localization audit in the final handoff, or explicitly say what could not be verified.
32
33## Related shortcut rule
34
35Every new cmux-owned keyboard shortcut must be added to `KeyboardShortcutSettings`, visible/editable in Settings, supported in `~/.config/cmux/cmux.json`, and documented in the keyboard shortcut and configuration docs.
36
37## Detailed reference
38
39- Read [references/audit-workflow.md](references/audit-workflow.md) for a deeper audit process, common false positives, and examples of surfaces that count as user-facing.