Skip to content

Commit 9c22c66

Browse files
committed
i18n(service-settings): ship the built-in settings pages in zh-Hant, ar, fr and pt-BR
Four new locales for the built-in Setup settings pages (page titles and descriptions, groups, field labels and help, option labels, banners, actions and source badges), registered in settingsBuiltinTranslations under the platform-table tags (zh-CN before zh-Hant). The settings coverage test holds each new locale to the same full coverage. Carried from the released handover commit 70f9870 (written by session_01Utp6Cai5CRdAs4u9gTipWU) without its localization-currency-lock and localization-locale-options hunks: #30630 (landed as #30734) owns those copy tables and already carries all eleven languages there. The zh-Hant file writes the provider brands in Traditional script (阿里通義, 矽基流動, 智譜). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cya5ej5GQV86RPbRPK
1 parent a2f523a commit 9c22c66

7 files changed

Lines changed: 2694 additions & 3 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-settings': patch
3+
---
4+
5+
i18n(service-settings): the built-in Setup settings pages ship in Traditional Chinese, Arabic, French and Brazilian Portuguese
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The built-in settings pages (Mail, SMS, Branding, Company, Localization, Authentication, File Storage, AI & Embedder, Knowledge, and the Data Lifecycle page `@objectstack/objectql` registers) now carry `zh-Hant`, `ar`, `fr` and `pt-BR` beside the existing `en`, `zh-CN`, `ja-JP` and `es-ES`: page titles and descriptions, group headings, field labels and help, option labels, banners, action buttons and the source badges. An administrator reading Setup in one of those languages sees these pages in their own language instead of English. Country pickers name each country in the reader's language through `Intl.DisplayNames`, as the existing locales do. The settings coverage test now holds each new locale to the same full coverage. First half of package 6 of #30512; `ru`, `de` and `ko` follow in the second half.

‎packages/services/service-settings/src/translations/ar.ts‎

Lines changed: 698 additions & 0 deletions
Large diffs are not rendered by default.

‎packages/services/service-settings/src/translations/fr.ts‎

Lines changed: 752 additions & 0 deletions
Large diffs are not rendered by default.

‎packages/services/service-settings/src/translations/index.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,20 @@ import { en } from './en.js';
2222
import { zhCN } from './zh-CN.js';
2323
import { jaJP } from './ja-JP.js';
2424
import { esES } from './es-ES.js';
25+
import { zhHant } from './zh-Hant.js';
26+
import { ar } from './ar.js';
27+
import { fr } from './fr.js';
28+
import { ptBR } from './pt-BR.js';
2529

26-
export { en, zhCN, jaJP, esES };
30+
export { en, zhCN, jaJP, esES, zhHant, ar, fr, ptBR };
2731

2832
export const settingsBuiltinTranslations: PlatformTranslationBundle = {
2933
en,
3034
'zh-CN': zhCN,
3135
'ja-JP': jaJP,
3236
'es-ES': esES,
37+
'zh-Hant': zhHant,
38+
'ar': ar,
39+
'fr': fr,
40+
'pt-BR': ptBR,
3341
};

‎packages/services/service-settings/src/translations/pt-BR.ts‎

Lines changed: 736 additions & 0 deletions
Large diffs are not rendered by default.

‎packages/services/service-settings/src/translations/settings-translation-coverage.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
22

33
/**
4-
* Settings-translation coverage guard (zh-CN / ja-JP / es-ES).
4+
* Settings-translation coverage guard (every shipped non-English locale).
55
*
66
* Every built-in settings manifest ships English labels inline; the console
77
* localizes them by resolving `settings.<namespace>.…` against the shipped
@@ -24,7 +24,7 @@ import { describe, it, expect } from 'vitest';
2424
import type { SettingsManifest } from '@objectstack/spec/system';
2525
import { lifecycleSettingsManifest } from '@objectstack/objectql';
2626
import * as manifestsModule from '../manifests/index.js';
27-
import { en, zhCN, jaJP, esES } from './index.js';
27+
import { en, zhCN, jaJP, esES, zhHant, ar, fr, ptBR } from './index.js';
2828

2929
// The manifests barrel also exports action handlers and the aggregate array;
3030
// keep only the manifest objects.
@@ -53,6 +53,10 @@ const LOCALES: Array<[string, { settings?: Record<string, any> }]> = [
5353
['zh-CN', zhCN],
5454
['ja-JP', jaJP],
5555
['es-ES', esES],
56+
['zh-Hant', zhHant],
57+
['ar', ar],
58+
['fr', fr],
59+
['pt-BR', ptBR],
5660
];
5761

5862
function missingFor(data: { settings?: Record<string, any> }, m: SettingsManifest): string[] {

‎packages/services/service-settings/src/translations/zh-Hant.ts‎

Lines changed: 483 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)