Repository navigation
Commit c857810
committed
feat(i18n)!: read the platform locale table, add a generated zh-Hant pack, key packs by table tag
The Console's language packs are now the platform locale table
(PLATFORM_LOCALES in @objectstack/spec/system): one pack per tag, keyed by
the tag (zh-Hans, zh-Hant, pt-BR). zh-Hant is generated from zh-Hans by
scripts/gen-zh-hant.mjs (OpenCC s2twp, pinned at 1.3.1, with the
www.objectos.ai overrides, four straddle repairs and one phrase override
found reading the pack).
Stored and browser codes keep resolving through the table's read aliases:
resolveBuiltInLanguage (new export) reads zh/zh-CN as zh-Hans, zh-TW/zh-HK
as zh-Hant, pt as pt-BR, then each shorter prefix; createI18n's fallbackLng
maps every alias to its tag. The app-shell splash, outbound agent text and
flow permission line read the snapshot by tag.
The parity, outbound, eager-catalogue and en-drift checks read the table;
en-drift reads a follower pack absent at the base as new.
Claude-Session: https://claude.ai/code/session_01L6bhgThgWPADcpU1xXCBsw
Co-authored-by: Claude <noreply@anthropic.com>1 parent f6faf75 commit c857810
109 files changed
Lines changed: 6736 additions & 517 deletions
File tree
- ui
- apps/console
- src
- __tests__
- pages
- auth/__tests__
- developer
- settings/__tests__
- packages
- app-shell/src
- chrome
- console
- ai
- auth/__tests__
- organizations/__tests__
- hooks/__tests__
- layout/__tests__
- utils
- __tests__
- views
- __tests__
- approval-decision
- components/src/__tests__
- i18n
- scripts
- src
- __tests__
- locales
- plugin-calendar/src
- plugin-charts/src
- plugin-detail/src/__tests__
- plugin-view/src/__tests__
- scripts
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | 356 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments