|
| 1 | +--- |
| 2 | +'@object-ui/i18n': patch |
| 3 | +'@object-ui/app-shell': patch |
| 4 | +'@object-ui/console': patch |
| 5 | +--- |
| 6 | + |
| 7 | +fix(i18n): the Console language menu offers the platform locale table's languages, intersected with the app's locale list |
| 8 | + |
| 9 | +Clause-②: no (narrowing) |
| 10 | +Metadata-protocol: none |
| 11 | + |
| 12 | +<!-- adr-0087: not-required (no-migration-prescription) no metadata an author writes changes: `i18n.supportedLocales` accepts the same values, `GET /api/v1/i18n/locales` reports the same list and no stored shape is rewritten; what narrows is the Console menu's reading of that list, and a language outside the platform locale table has no replacement spelling to migrate to --> |
| 13 | + |
| 14 | +**BREAKING** for an app whose locale list names a language outside the platform locale table (for example `th`): the Console language menu no longer offers it. No first-party app does — examples/app-crm, app-showcase, app-todo and HotCRM declare only table languages, through read-alias spellings that now show as their table entries. |
| 15 | + |
| 16 | +The Console language menu now offers the platform locale table's languages, |
| 17 | +intersected with the app's locale list (ruling F). `offerableLanguages` reads |
| 18 | +each code the app lists through the table's read aliases and offers table tags |
| 19 | +only, de-duplicated, in the app's order: |
| 20 | + |
| 21 | +- a stored spelling is its table entry with the table's own label: an app |
| 22 | + declaring `zh-CN`, `ja-JP` or `es-ES` shows 简体中文, 日本語 and Español instead |
| 23 | + of 中文(中国), 日本語 (日本) and Español de España, and a pick writes the |
| 24 | + table tag (`zh-Hans`) to `sys_user.locale`; |
| 25 | +- two spellings of one language (`zh-CN` beside `zh-Hans`) are one entry; |
| 26 | +- a code the table does not name (for example `th`) is no longer offered, and |
| 27 | + neither is an out-of-table key of `config.resources` in the offline fallback. |
| 28 | + A stored choice of such a code still boots, then reverts and is cleared once |
| 29 | + the app's list arrives. |
| 30 | + |
| 31 | +The menu's checkmark and the profile page's language card compare a stored |
| 32 | +spelling through the same resolution, so an account storing `zh-CN` sees one |
| 33 | +简体中文 entry, ticked. |
| 34 | + |
| 35 | +Migration: none for a metadata author — `i18n.supportedLocales` accepts the |
| 36 | +same values and `GET /api/v1/i18n/locales` reports the same list. An app that |
| 37 | +relied on the menu offering a language outside the platform locale table has |
| 38 | +no replacement; that language is not complete on the platform's own surfaces. |
0 commit comments