Repository navigation
Commit 1ebe0c5
i18n(platform-objects): ship the platform objects, Setup, Studio and Account in German (#31511)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X5xwArPxERFNdAjYY2nKcc9)_
Part of #30512
Thread-read: 6720709854
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:给 `@objectstack/platform-objects` 加上德语(de):平台对象、Studio
的元数据表单、Setup/Studio/Account 导航、系统概览仪表板和用户/组织记录页的内嵌文字,做法与已合并的
pt-BR(#31440)、ru(#31466)逐文件一致。
- 为什么改:de 是 #30512 要补的第六个语言(之后是 ko)。目前 de 用户在控制台里看到的 `sys_*` 标签全是英文。
- 风险与回滚:只新增 de 文件、注册行和测试里的语言列表;已有语言一个字节都不变(其余 26 个生成文件不在 diff 里);新文字同样走
source-hash 回退。回滚即 revert 本 PR。
-
先看:`packages/platform-objects/src/apps/translations/de.ts`(导航钉住项),`de.source-hashes.generated.ts`(155
条与英文相同的叶子,下面逐类列出),以及被 repeater-row-properties 拒绝后改为带父级名称的 9 个 `Name` 行(见
Acceptance notes)。
- 两分钟验证:`cd packages/platform-objects && npx vitest run
src/apps/translations/source-hash.test.ts
src/apps/translations/repeater-row-properties.test.ts`,预期 2 个文件全部通过。
- 需要你做的:生成文件让 PR 超过 3000 行,需要席位契约复审 ACCEPT,然后请人工合并。
## What changes
- New `de` bundles in `packages/platform-objects/src/apps/translations`:
`de.objects.generated.ts` (1698 leaves),
`de.metadata-forms.generated.ts` (1263 leaves), their provenance table
`de.source-hashes.generated.ts` (155 deliberate byte copies of `en`,
listed under Acceptance notes), the hand-authored `de.ts` (141 leaves)
and `de.source-hashes.ts` recording the `en` digest of every hand leaf.
- Registration: the extract config's `--locales` docstring and
`translations:` baseline, `setup.translation.ts`, the `apps` barrel, and
`metadata-translations/index.ts`.
- Inline maps: 36 in `sys-user.page.ts`, 6 in
`sys-organization.page.ts`, and the System Overview null label in
`system.datasets.ts` (`System`, which is the German word as well).
- Wording pins, as #31233 lists them: `nav_account_approvals` reads as
plugin-approvals' `my_pending` label (`Meine ausstehenden
Genehmigungen`), `nav_assignment_rules` as `sys_assignment_rule`'s
plural label (`Zuweisungsregeln`), each `nav_settings_*` (including
`nav_settings_access_policy`, `Zugriffsrichtlinie`) as its
service-settings hub title, `nav_settings_hub` as the console's
`backToHub` (`Alle Einstellungen`), and the four #30935 keys:
`grp_account_ai_assistant` = `KI-Assistent`; both `nav_connect_agent`
entries and `pages.connect_agent.label` = `KI-Assistenten verbinden`.
- Changeset `.changeset/30512-platform-objects-de.md` (patch).
## Tests
- `de` added beside `ru` to the locale lists of every test #31466
widened (vocabulary, nav parity, dead-key tombstone, source-hash,
bu-rename with `old: /Abteilung/`, the five identity copy tests,
record-page tabs, null label, per-user stores, plugin translation
loads), plus plugin-approvals `approval-status-vocabulary`,
plugin-security `people-org-assignment-nav-contribution` and
service-settings `setup-nav-hub-parity`. The cli
`platform-page-i18n-parity` LOCALE_KEY shape already accepts `de`.
- No new negative pin, for the same reason as #31466: the plugin-audit
twin test is outside this claim's file surface.
## Acceptance notes
- Every leaf is translated. The 155 byte copies of `en` the extract
records fall into four groups:
- German words spelled the same as English (109): `Name` ×29, `Status`
×9, `Namespace` ×6, `Version` ×4, `Import` ×4, `Branding`, `Navigation`,
`Filter`, `Team` and `Token` ×3 each, `Widgets`, `Layout`, `Dataset`,
`Position`, `Gantt`, `Kanban`, `Code`, `Migration`, `System` and
`Revision` ×2 each, and one each of `Dashboard`, `Widget`, `Flow`,
`Hook`, `Handler`, `Avatar`, `App`, `Teams`, `Tags`, `Info`, `Logo`,
`Global`, `Patch`, `Backoff`, `Job`, `Drilldown`, `Schemas`, `Feeds`,
`Shards`, `Element`, `Details (JSON)`, `Name / Host`.
- Identifiers and header names (38): `ID` ×24, `API` ×2, `JWKS`, `JWKS
URI`, `Message-ID`, `Cc`, `Bcc`, `Slug`, `Web`, `snake_case`, the SAML
`urn:…:emailAddress` NameID format, and the `openid email profile` /
`email` / `name` defaults.
- Lowercase option values that are identifiers (3): `cron`, `dlq`,
`api`.
- The five JSON examples (5), kept verbatim as every locale keeps them.
- `repeater-row-properties` refused nine `Name` echoes in repeater rows,
so each now names its parent: `Parametername` (action params),
`Filtername` (dashboard global filters), `Dimensionsname` and
`Kennzahlname` (dataset dimensions and measures), `Spaltenname` (field
inline columns), `Variablenname` (flow and page variables), `Indexname`
(object indexes) and `Blockname` (report blocks). The row IDs and
several descriptions name their parent too (`Bereichs-ID`, `Knoten-ID`,
`Kanten-ID`, `Widget-Beschreibung`, `Optionsbeschreibung`, …).
- Vocabulary follows the existing `de` plugin bundles: formal „Sie“, „…“
quotes, `Benutzer`, `Geschäftseinheit`, `Berechtigungssatz`, `Position`,
`Warteschlange`, `Freigabe`, `Datensatz`, `Genehmigung`, `KI`,
`Fähigkeit` (skill), `Werkzeug` (tool), `Systemberechtigung`
(capability); hub titles exactly as service-settings spells them
(`E-Mail-Versand`, `SMS-Versand`, `Dateispeicher`, `KI und Embedder`,
`Datenlebenszyklus`, …).
- Business units are `Geschäftseinheiten`; no `sys_business_unit*` label
says `Abteilung` (`bu-rename-consistency`).
- Deviation, as in #31466: no plugin-audit `de` twin of the #28107
activity-summary test, because plugin-audit is not in the claim's file
surface.
## Verification
- `os i18n extract
packages/platform-objects/scripts/i18n-extract.config.ts
--locales=zh-CN,ja-JP,es-ES,zh-Hant,ar,fr,pt-BR,ru,de --fill=default
--source-hashes --out=packages/platform-objects/src/apps/translations`:
a rerun regenerates the `de` bundles byte-identical (`md5sum -c`) and
leaves the 26 other generated files unchanged (none of them is in the
diff). `check-i18n-bundles --filter=platform-objects`: in sync (29
bundles).
- `vitest run` in platform-objects: 120 files, 1886 tests passed.
plugin-approvals `approval-status-vocabulary` (6), plugin-security
`people-org-assignment-nav-contribution` (5), service-settings
`setup-nav-hub-parity` plus `translations` (156) and cli
`platform-page-i18n-parity` (27) passed.
- platform-objects `typecheck`: exit 0. `check:app-nav-i18n`: OK (13
contributors, 10 locales, 2 apps).
- `dispatch-gates --ran` at e16f19c (rebased on `origin/main`
507b53c): 68 derived families, 68 run, 0 NOT-MEASURED, all exit 0
(including `check:i18n`, `check:i18n-stale-fill`, `check:dts-closure`,
`check:dual-build-cjs-loads`, `check:nul-bytes`).
- Rebased onto `origin/main` 7d0b47c (3 commits, none in
platform-objects; service-settings gained translated settings keys):
head 72391c4. The extract reran with no diff, `check-i18n-bundles` in
sync, platform-objects `vitest run` 1886 passed, service-settings
`setup-nav-hub-parity` plus `translations` 156 passed.
- `eslint` over the changed `.ts` paths (scoped, `--no-inline-config`):
exit 0.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5mqoYjnPaGZhS8jzcF)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6ed533f commit 1ebe0c5
36 files changed
Lines changed: 7394 additions & 48 deletions
File tree
- .changeset
- packages
- platform-objects
- scripts
- src
- apps
- dashboards
- translations
- identity
- metadata-translations
- pages
- plugins
- plugin-approvals/src/translations
- plugin-security/src
- services/service-settings/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
| |||
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
| 267 | + | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
| |||
367 | 370 | | |
368 | 371 | | |
369 | 372 | | |
| 373 | + | |
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
145 | | - | |
| 148 | + | |
146 | 149 | | |
147 | | - | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
0 commit comments