Commit 8de5a6e
committed
feat: localize control-bar button titles and rename to Design Mode
Rename the collapse-editor toggle's expanded-state title from
"Switch to Visual Edit" to "Switch to Design Mode" so it matches
the rest of the feature's naming (command id, menu item, body
class, WorkspaceManager API all already use "design mode").
Also localize the control bar's hardcoded English titles:
- Switch to Design Mode / Switch to Code Editor get new string
keys (CCB_SWITCH_TO_DESIGN_MODE, CCB_SWITCH_TO_CODE_EDITOR).
- Sidebar toggle, Undo, Redo, Save reuse existing
CMD_TOGGLE_SIDEBAR / CMD_UNDO / CMD_REDO / CMD_FILE_SAVE.
- Search / Back / Forward were already localized via
NavigationProvider.updateTooltips.
HTML keeps the English titles as fallback; the JS init overwrites
them with the localized strings so the user's locale shows on
first render.1 parent fd6b90f commit 8de5a6e
3 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | | - | |
| 939 | + | |
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
| 933 | + | |
| 934 | + | |
933 | 935 | | |
934 | 936 | | |
935 | 937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
307 | 316 | | |
308 | 317 | | |
309 | 318 | | |
| |||
0 commit comments