Skip to content

Commit bf4fb90

Browse files
committed
fix(ui): read every pack by its platform locale tag outside the i18n package
The suites outside ui/packages/i18n that hard-coded ten packs, a zh / pt key, a 'zh' pack lookup or the menu's 中文 entry now read the platform locale table or the tag. Three readers keyed by the old codes are fixed with them. The provider wrote a booted alias's catalogue (zh, zh-TW, pt) a second time under the alias, an added event that re-rendered every reader and refetched every chart for a catalogue already resident; it now writes under the tag. A stored zh-TW locale took the first offered zh variant (zh-Hans); pickRenderableLocale now takes the first offered code the table reads as the same language first. The page-tab label dictionary served its Simplified rows to every non-exact zh session; a zh-Hant, zh-HK or zh-MO session reads its Traditional rows. The en-drift fixtures write a const that is not named by the tag, and a new describe pins the base-absent follower rule. The generated zh-Hant pack is recorded as not driver-managed in the merge-driver ledger, and the converter's declaration twin joins the package's test program. The changeset declares the change. Claude-Session: https://claude.ai/code/session_01L6bhgThgWPADcpU1xXCBsw Co-authored-by: Claude <noreply@anthropic.com>
1 parent c857810 commit bf4fb90

34 files changed

Lines changed: 489 additions & 177 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
'@object-ui/i18n': patch
3+
'@object-ui/components': patch
4+
'@object-ui/console': patch
5+
---
6+
7+
feat(i18n)!: the Console's language packs are the platform locale table's, keyed by its tags, and Traditional Chinese (`zh-Hant`) ships, generated from Simplified (#30511)
8+
9+
Clause-②: yes (narrowing) — widens: a `zh-Hant` pack (the `zhHant` export of `@object-ui/i18n/locales`, the `@object-ui/i18n/locales/zh-Hant` module), the `resolveBuiltInLanguage` export of `@object-ui/i18n`, and every stored or browser code the platform locale table reads as one of its tags (`zh-TW`, `zh-HK`, `zh-MO` → `zh-Hant`; `zh`, `zh-CN`, `zh-SG` → `zh-Hans`; `pt` → `pt-BR`). Narrows: the Simplified Chinese and Portuguese packs are keyed `zh-Hans` and `pt-BR`, no longer `zh` and `pt`, in `builtInLocales`, `BUILT_IN_LANGUAGE_CODES`, `getLoadedBuiltInLocales()` and `getAvailableLanguages()`, and their modules `@object-ui/i18n/locales/zh` and `@object-ui/i18n/locales/pt` are `@object-ui/i18n/locales/zh-Hans` and `@object-ui/i18n/locales/pt-BR`.
10+
Metadata-protocol: none
11+
Skills-docs: follow-up owed — `skills/objectui/guides/i18n.md` (its "Built-in locales" list names ten packs, with `zh` and `pt`)
12+
13+
<!-- adr-0087: not-required (no-migration-prescription) No metadata changes shape: no spec key, object definition, stored row or authorable spelling is added, removed or renamed, so `objectstack migrate meta` has nothing to rewrite and no ledger entry could project. The FROM/TO lines below are source rewrites for TypeScript and JavaScript consumers of `@object-ui/i18n`'s `./locales` subpath (two members of `builtInLocales`, two modules). That is the class `runtime-export-retired` exists for, but it reads a package's root entry only and refuses a subpath operand, and the root entry retires nothing here; so this category is held, and the gap is named here rather than left to the detector. -->
14+
15+
**BREAKING** for code that reads a built-in pack by its old key or module path.
16+
17+
- **Why.** The Console's packs follow the platform locale table (`PLATFORM_LOCALES` in `@objectstack/spec/system`, ruling F of #29349) instead of a list of their own: one pack per table tag, keyed by the tag, in the table's order. A language the table gains is a pack the parity and drift suites demand on the run that first sees it.
18+
- **Traditional Chinese.** `src/locales/zh-Hant.ts` is generated from `zh-Hans.ts` by `pnpm --filter @object-ui/i18n gen:zh-hant` (OpenCC `s2twp`, pinned, with the phrase rules of the www.objectos.ai converter) and is never edited by hand; a package test fails when it is not what the generator writes. It carries no `console.ai.*` gate-only outbound keys, exactly as the other non-gate packs.
19+
- **Stored codes keep working.** A `sys_user.locale` value, a saved device language or an `Accept-Language` tag written before the table is read through the table's aliases: `zh-CN` still renders Simplified Chinese, `pt` Portuguese (Brazil), and `zh-TW` / `zh-HK` / `zh-MO` now render Traditional Chinese instead of Simplified. `loadBuiltInLocale`, `isBuiltInLanguage` and i18next's fallback chain accept every alias.
20+
- **Studio.** The Studio namespace still ships `en` and `zh` only; a `zh-Hant` reader sees its Simplified catalogue there.
21+
22+
The fix, for code that names a pack:
23+
24+
- FROM `builtInLocales.zh` TO `builtInLocales['zh-Hans']`
25+
- FROM `builtInLocales.pt` TO `builtInLocales['pt-BR']`
26+
- FROM `import zh from '@object-ui/i18n/locales/zh'` TO `import zh from '@object-ui/i18n/locales/zh-Hans'`
27+
- FROM `import pt from '@object-ui/i18n/locales/pt'` TO `import pt from '@object-ui/i18n/locales/pt-BR'`
28+
- FROM comparing a code from `BUILT_IN_LANGUAGE_CODES`, `getAvailableLanguages()` or the keys of `getLoadedBuiltInLocales()` with `'zh'` or `'pt'` TO comparing `resolveBuiltInLanguage(code)` with `'zh-Hans'` or `'pt-BR'`

‎scripts/regen-artifacts.mjs‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,21 @@ export const NOT_DRIVER_MANAGED = Object.freeze([
913913
+ 'serves that day and drop every edit the patch list does not carry, and it needs the network, '
914914
+ 'which a merge must not. A conflict in a vendored component stays a human\'s; never routed.',
915915
},
916+
// objectstack#30511 (ruling F of #29349): the Console's Traditional Chinese pack.
917+
{
918+
path: 'ui/packages/i18n/src/locales/zh-Hant.ts',
919+
gen: 'gen:zh-hant',
920+
owner: '@object-ui/i18n',
921+
why:
922+
'generated WHOLE from `zh-Hans.ts` by `gen:zh-hant`, so "discard both sides and re-run" '
923+
+ 'loses no human decision. Still not routed: a `REGEN_ARTIFACTS` row needs a `check:` script '
924+
+ 'as its currency proof, and ruling F of #29349 adds no gate to this phase. The currency proof '
925+
+ 'is the package test `src/__tests__/zh-hant-generated.test.ts`, which reds a pack that is not '
926+
+ 'byte-for-byte the generator\'s output wherever the ui unit tests run, and the driver is local '
927+
+ 'anyway (never the queue\'s merge). The pack is line-aligned with `zh-Hans.ts`, one line per '
928+
+ 'line, so two branches editing different keys text-merge apart; a conflict is resolved by '
929+
+ 'taking either side and running `pnpm --filter @object-ui/i18n gen:zh-hant`.',
930+
},
916931
]);
917932

918933
/** Marker file (inside the git dir, never the worktree) listing paths the driver deferred. */

‎ui/apps/console/src/components/StudioRoute.accessNotice-12035.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe('/studio refused: the sentence arrives in the caller language (objectui
159159
});
160160

161161
describe('CONTROL: a caller with Studio access enters Studio as today', () => {
162-
it.each(['en', 'zh'] as const)('%s', async (lang) => {
162+
it.each(['en', 'zh-Hans'] as const)('%s', async (lang) => {
163163
inLanguage(lang);
164164
systemPermissions = [STUDIO_ENTRY_CAPABILITY];
165165
renderStudio('/studio/');

‎ui/apps/console/src/pages/auth/__tests__/registerRefusalCodes-10998.test.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function refusingServer(code: string, message: string): typeof fetch {
6565
}) as typeof fetch;
6666
}
6767

68-
type Lang = 'zh' | 'en';
68+
type Lang = 'zh-Hans' | 'en';
6969

7070
/** Labels as the page renders them in `lang`, read from that pack. */
7171
function registerLabels(lang: Lang) {
@@ -125,7 +125,7 @@ describe('console RegisterPage — audience refusals under zh-CN (objectui#10998
125125

126126
it('SELF_REGISTRATION_CLOSED shows the localized text, not the server message', async () => {
127127
const text = await submitRefused(
128-
'zh',
128+
'zh-Hans',
129129
'SELF_REGISTRATION_CLOSED',
130130
SERVER_MESSAGE.SELF_REGISTRATION_CLOSED,
131131
);
@@ -136,7 +136,7 @@ describe('console RegisterPage — audience refusals under zh-CN (objectui#10998
136136

137137
it('EMAIL_DOMAIN_NOT_ALLOWED shows the localized text, not the server message', async () => {
138138
const text = await submitRefused(
139-
'zh',
139+
'zh-Hans',
140140
'EMAIL_DOMAIN_NOT_ALLOWED',
141141
SERVER_MESSAGE.EMAIL_DOMAIN_NOT_ALLOWED,
142142
);
@@ -146,7 +146,7 @@ describe('console RegisterPage — audience refusals under zh-CN (objectui#10998
146146

147147
it('a code the page does not map still shows the raw server message', async () => {
148148
const raw = 'The server refused this sign-up for a reason the console has no text for.';
149-
const text = await submitRefused('zh', 'UNMAPPED_REFUSAL_FOR_TEST', raw);
149+
const text = await submitRefused('zh-Hans', 'UNMAPPED_REFUSAL_FOR_TEST', raw);
150150
expect(text).toBe(raw);
151151
});
152152
});

‎ui/packages/app-shell/src/chrome/LoadingScreen.bootCopy-12187.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ describe('LoadingScreen boot copy (objectui#12187)', () => {
9999
// not waiting for a re-render that nothing schedules any more.
100100
expect(first[0].text).toBe(`${PRODUCT}${zh.console.initializing}`);
101101
// The provider does write it afterwards; the screen no longer depends on that.
102-
expect(document.documentElement.lang).toBe('zh');
102+
// The table tag a zh-CN browser reads as (objectstack#30511).
103+
expect(document.documentElement.lang).toBe('zh-Hans');
103104
});
104105

105106
it('control: an en browser paints the en line on the first commit', () => {

‎ui/packages/app-shell/src/console/home/__tests__/appTileOpenedLine-12601.test.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { describe, it, expect, beforeAll, afterAll, vi } from 'vitest';
3535
import { builtInLocales } from '@object-ui/i18n/locales';
3636
import { timeAgo } from '../../../utils/relativeTime';
3737
import { TILE_OPENED_TIME_FORMAT } from '../appLastOpened';
38+
import { PLATFORM_LOCALE_TAGS } from '@objectstack/spec/system';
3839

3940
const TILE_PX = 112;
4041
const TILE_PADDING_PX = 8;
@@ -101,7 +102,7 @@ afterAll(() => {
101102

102103
describe('a Home tile’s last-opened line fits its tile (objectui#12601)', () => {
103104
it(`every pack's line, seconds to a year, is within ${BUDGET_PX} px at ${FONT_PX} px`, () => {
104-
expect(PACKS).toHaveLength(10);
105+
expect(PACKS).toHaveLength(PLATFORM_LOCALE_TAGS.length);
105106
const over: string[] = [];
106107
for (const { language, template } of PACKS) {
107108
expect(template, language).toContain('{{time}}');
@@ -115,15 +116,15 @@ describe('a Home tile’s last-opened line fits its tile (objectui#12601)', () =
115116

116117
it('en and zh read as the card asks, at 6 s, 5 min, 3 h and 2 d', () => {
117118
const en = PACKS.find((p) => p.language === 'en')!.template;
118-
const zh = PACKS.find((p) => p.language === 'zh')!.template;
119+
const zh = PACKS.find((p) => p.language === 'zh-Hans')!.template;
119120
const points = [6 * SECOND, 5 * MINUTE, 3 * HOUR, 2 * DAY];
120121
expect(points.map((ago) => tileLine(en, 'en', ago))).toEqual([
121122
'6 sec. ago',
122123
'5 min. ago',
123124
'3 hr. ago',
124125
'2 days ago',
125126
]);
126-
expect(points.map((ago) => tileLine(zh, 'zh', ago))).toEqual(['6秒前打开', '5分钟前打开', '3小时前打开', '2天前打开']);
127+
expect(points.map((ago) => tileLine(zh, 'zh-Hans', ago))).toEqual(['6秒前打开', '5分钟前打开', '3小时前打开', '2天前打开']);
127128
});
128129

129130
it('CONTROL — the long form the tile used to draw is over the budget', () => {

‎ui/packages/app-shell/src/console/marketplace/__tests__/MarketplacePage.sameOriginHint-11726.test.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ afterEach(() => {
106106

107107
const LANGS = {
108108
en: { defaultLanguage: 'en', detectBrowserLanguage: false },
109-
zh: { defaultLanguage: 'zh', detectBrowserLanguage: false },
109+
'zh-Hans': { defaultLanguage: 'zh-Hans', detectBrowserLanguage: false },
110110
} as const;
111111
type Lang = keyof typeof LANGS;
112112

@@ -129,7 +129,7 @@ const packValue = (lang: Lang, key: string): unknown =>
129129
*/
130130
const CLAIMS: Record<Lang, { routes: RegExp; servesItself: RegExp }> = {
131131
en: { routes: /through this runtime/i, servesItself: /\bserves?\b|\bitself\b/i },
132-
zh: { routes: /通过本运行时/, servesItself: /自己提供|自身提供|本身提供/ },
132+
'zh-Hans': { routes: /通过本运行时/, servesItself: /自己提供|自身提供|本身提供/ },
133133
};
134134

135135
/** Any host or URL, or an unfilled `{{url}}` hole. */
@@ -203,9 +203,9 @@ describe('a configured plane keeps its hint, naming that plane (objectui#11726)'
203203
);
204204
});
205205

206-
it('zh', async () => {
206+
it('zh-Hans', async () => {
207207
await bootOn('https://cloud.acme.internal');
208-
renderIn('zh');
208+
renderIn('zh-Hans');
209209
expect(await screen.findByTestId('marketplace-load-hint')).toHaveTextContent(
210210
'本运行时通过 https://cloud.acme.internal 上的控制面访问应用市场。请检查该地址是否在线、能否从本运行时访问。',
211211
);

‎ui/packages/app-shell/src/console/marketplace/__tests__/MarketplaceRowActions.installedAppsPins.test.tsx‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import { initRuntimeConfig, resetRuntimeConfigForTesting } from '../../../runtim
4141

4242
type Pack = typeof en;
4343
const EN = { defaultLanguage: 'en', detectBrowserLanguage: false } as const;
44-
const ZH = { defaultLanguage: 'zh', detectBrowserLanguage: false } as const;
44+
const ZH = { defaultLanguage: 'zh-Hans', detectBrowserLanguage: false } as const;
4545

4646
/** `{{name}}` interpolation, as i18next applies it to these keys (`escapeValue: false`). */
4747
const fill = (template: string, values: Record<string, string>) =>
@@ -159,7 +159,7 @@ afterEach(() => {
159159

160160
describe.each([
161161
['en', EN, en as Pack],
162-
['zh', ZH, zh as unknown as Pack],
162+
['zh-Hans', ZH, zh as unknown as Pack],
163163
])('Packages — a refused marketplace install reads not loaded, with its reason (objectui#11645) [%s]', (_lang, config, pack) => {
164164
const badge = pack.marketplace.notLoaded.badge;
165165
const reason = fill(pack.marketplace.notLoaded.protocolIncompatible, { requiredRange: '^16' });
@@ -259,7 +259,7 @@ describe('Packages — Uninstall from a marketplace row (objectui#11645)', () =>
259259

260260
describe.each([
261261
['en', EN, en as Pack],
262-
['zh', ZH, zh as unknown as Pack],
262+
['zh-Hans', ZH, zh as unknown as Pack],
263263
])('Packages — the kernel note is the marketplace Uninstall tooltip (objectui#12610) [%s]', (_lang, config, pack) => {
264264
const note = pack.marketplace.installedAdditiveNote;
265265

@@ -301,9 +301,9 @@ describe.each([
301301
describe('every pack\'s kernel note is plain text (objectui#12610)', () => {
302302
const packs = Object.entries(builtInLocales) as Array<[string, Pack]>;
303303

304-
it('the walk below reads all ten packs', () => {
304+
it('the walk below reads every pack', () => {
305305
expect(packs.map(([lang]) => lang).sort()).toEqual(
306-
['ar', 'de', 'en', 'es', 'fr', 'ja', 'ko', 'pt', 'ru', 'zh'],
306+
['ar', 'de', 'en', 'es', 'fr', 'ja', 'ko', 'pt-BR', 'ru', 'zh-Hans', 'zh-Hant'],
307307
);
308308
});
309309

@@ -327,13 +327,16 @@ describe('every pack\'s kernel note is plain text (objectui#12610)', () => {
327327
*/
328328
const RETIRED_RESTART_CLAIM: Record<string, RegExp> = {
329329
en: /until you restart|until the next restart|keeps the app registered|remain loaded|restart the runtime|additive only/i,
330-
zh: /直到下次重启|仍会保留该应用|仅支持新增|重启运行时/,
330+
'zh-Hans': /直到下次重启|仍会保留该应用|仅支持新增|重启运行时/,
331+
// The zh-Hans claims, converted the way the generated pack is (`运行时` reads
332+
// 執行時 or 執行環境 by context, so both).
333+
'zh-Hant': /直到下次重啟|仍會保留該應用|僅支援新增|重啟執行環境|重啟執行時/,
331334
ja: /再起動するまで|次の再起動まで|再起動して|追加のみ/,
332335
ko: /재시작될 때까지|재시작하세요|추가 전용/,
333336
de: /bis zum Neustart|Laufzeitsystem neu|nur additiv/,
334337
es: /hasta reiniciar|Reinicie el runtime|solo aditiva/,
335338
fr: /jusqu'au redémarrage|Redémarrez le runtime|uniquement additive/,
336-
pt: /até reiniciar|Reinicie o runtime|apenas aditiva/,
339+
'pt-BR': /até reiniciar|Reinicie o runtime|apenas aditiva/,
337340
ru: /до перезапуска|Перезапустите рантайм|только аддитивный/,
338341
ar: /حتى إعادة التشغيل|أعد تشغيل|إضافية فقط/,
339342
};
@@ -349,7 +352,7 @@ const UNINSTALL_TEXTS: Array<[string, (pack: Pack) => string]> = [
349352
/** Withdrawn at once; not loaded at the next start; records kept. */
350353
const MEASURED_CLAIMS: Record<string, RegExp[]> = {
351354
en: [/\bat once\b/, /\bdoes not load at the next start\b/, /\bstay in the database\b/],
352-
zh: [/立即/, /下次启动时不再加载/, /保留在数据库中/],
355+
'zh-Hans': [/立即/, /下次启动时不再加载/, /保留在数据库中/],
353356
};
354357

355358
/** The confirm (before the DELETE) and the result line (after it), per language. */
@@ -358,15 +361,15 @@ const MEASURED_UNINSTALL_CLAIMS: Record<string, { confirm: RegExp[]; result: Reg
358361
confirm: [/\bat once\b/, /\bpermission sets\b/, /\bstay in the database\b/],
359362
result: [/\bhas left the running kernel\b/, /\bpermission sets\b/, /\bstay in the database\b/],
360363
},
361-
zh: {
364+
'zh-Hans': {
362365
confirm: [/立即/, /权限集/, /保留在数据库中/],
363366
result: [/已从运行中的内核中移除/, /权限集/, /保留在数据库中/],
364367
},
365368
};
366369

367370
describe.each([
368371
['en', EN, en as Pack],
369-
['zh', ZH, zh as unknown as Pack],
372+
['zh-Hans', ZH, zh as unknown as Pack],
370373
])('Packages — the uninstall texts say the app leaves the running kernel at once (objectui#12684) [%s]', (lang, config, pack) => {
371374
it('a loaded row\'s Uninstall describes the live withdrawal, and no restart', async () => {
372375
const user = userEvent.setup();

‎ui/packages/app-shell/src/console/organizations/__tests__/CreateWorkspaceDialog.test.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { provisionProductionEnvironment } from '../provisionEnvironment';
3030
import { builtInLocales } from '@object-ui/i18n/locales';
3131

3232
/** The pack `t` reads from; `null` answers the call site's `defaultValue`. */
33-
let packLang: 'en' | 'zh' | null = null;
33+
let packLang: 'en' | 'zh-Hans' | null = null;
3434
function translate(key: string, options?: Record<string, unknown>): string {
3535
const fromPack = packLang
3636
? key.split('.').reduce<unknown>((n, k) => (n as Record<string, unknown> | undefined)?.[k], builtInLocales[packLang])
@@ -296,7 +296,7 @@ describe('prefills a first organization from the e-mail (objectstack-ai/cloud#35
296296

297297
it.each([
298298
['en', 'My Organization', 'my-organization'],
299-
['zh', '我的组织', null],
299+
['zh-Hans', '我的组织', null],
300300
] as const)('%s: a public-mailbox user sees the generic default and one click creates it', async (lang, expected, slug) => {
301301
packLang = lang;
302302
authState = { user: GMAIL_USER, organizations: [], isOrganizationsLoading: false };
@@ -316,7 +316,7 @@ describe('prefills a first organization from the e-mail (objectstack-ai/cloud#35
316316
});
317317

318318
it('a public mailbox subdomain (vip.qq.com) and a punycode work label take the generic default', () => {
319-
packLang = 'zh';
319+
packLang = 'zh-Hans';
320320
for (const email of ['li@vip.qq.com', 'li@xn--fiqs8s.com']) {
321321
authState = { user: { ...GMAIL_USER, email }, organizations: [], isOrganizationsLoading: false };
322322
const { unmount } = render(<CreateWorkspaceDialog open onOpenChange={() => {}} />);
@@ -326,7 +326,7 @@ describe('prefills a first organization from the e-mail (objectstack-ai/cloud#35
326326
});
327327

328328
it('a work-domain user sees the company name in both locales', async () => {
329-
for (const lang of ['en', 'zh'] as const) {
329+
for (const lang of ['en', 'zh-Hans'] as const) {
330330
packLang = lang;
331331
authState = { user: WORK_USER, organizations: [], isOrganizationsLoading: false };
332332
const { unmount } = render(<CreateWorkspaceDialog open onOpenChange={() => {}} />);

‎ui/packages/app-shell/src/console/organizations/__tests__/members-role-gating-4475.test.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ vi.mock('lucide-react', async (importOriginal) => {
185185
import { builtInLocales } from '@object-ui/i18n/locales';
186186
import { MembersPage } from '../manage/MembersPage';
187187
import { InvitationsPage } from '../manage/InvitationsPage';
188+
import { PLATFORM_LOCALE_TAGS } from '@objectstack/spec/system';
188189

189190
// ── Harness ──────────────────────────────────────────────────────────────────
190191

@@ -394,13 +395,13 @@ describe('#4475 — the invitations tab gates copy-link and cancel', () => {
394395
});
395396

396397
// ─────────────────────────────────────────────────────────────────────────────
397-
// #4474's channel: one new string, present in all ten packs
398+
// #4474's channel: one new string, present in every pack
398399
// ─────────────────────────────────────────────────────────────────────────────
399400

400401
describe('#4475 — the new note is translatable in every pack', () => {
401-
it('all ten packs define organization.members.inviteRestrictedNote', () => {
402+
it('every pack defines organization.members.inviteRestrictedNote', () => {
402403
const langs = Object.keys(builtInLocales) as Array<keyof typeof builtInLocales>;
403-
expect(langs.length).toBe(10);
404+
expect(langs.length).toBe(PLATFORM_LOCALE_TAGS.length);
404405
for (const lang of langs) {
405406
const value = (builtInLocales[lang] as any).organization?.members?.inviteRestrictedNote;
406407
expect(typeof value, `${lang}.organization.members.inviteRestrictedNote`).toBe('string');

0 commit comments

Comments
 (0)