Skip to content

Commit 2ef9d08

Browse files
committed
i18n(service-messaging): ship the notification objects and digest heading in ru, de and ko
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cai5CRdAs4u9gTipWU
1 parent 66a8822 commit 2ef9d08

12 files changed

Lines changed: 1610 additions & 9 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-messaging': patch
3+
---
4+
5+
i18n(service-messaging): the notification objects and the digest heading ship in Russian, German and Korean
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The messaging objects and the digest heading "You have {{count}} notifications" now carry `ru`, `de` and `ko` as well, so the package ships all eleven platform languages. `t()` selects no plural form, so the Russian heading is worded as a tally (`Уведомлений: {{count}}`), correct for every count. Each new locale is registered under its platform-table tag with its source-hash companion and its messages, and the package's extract command lists the tags, so the existing `check:i18n` bundle check covers them. Second half of package 5 of #30512.

‎packages/services/service-messaging/scripts/i18n-extract.config.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* `--merge` preserves every hand-translated string.
88
*
99
* os i18n extract packages/services/service-messaging/scripts/i18n-extract.config.ts \
10-
* --locales=zh-CN,ja-JP,es-ES,zh-Hant,ar,fr,pt-BR --fill=default --objects-only --no-metadata-forms \
10+
* --locales=zh-CN,ja-JP,es-ES,zh-Hant,ar,fr,pt-BR,ru,de,ko --fill=default --objects-only --no-metadata-forms \
1111
* --source-hashes \
1212
* --out=packages/services/service-messaging/src/translations
1313
*
@@ -53,6 +53,9 @@ import { zhHantObjects } from '../src/translations/zh-Hant.objects.generated.js'
5353
import { arObjects } from '../src/translations/ar.objects.generated.js';
5454
import { frObjects } from '../src/translations/fr.objects.generated.js';
5555
import { ptBRObjects } from '../src/translations/pt-BR.objects.generated.js';
56+
import { ruObjects } from '../src/translations/ru.objects.generated.js';
57+
import { deObjects } from '../src/translations/de.objects.generated.js';
58+
import { koObjects } from '../src/translations/ko.objects.generated.js';
5659

5760
/**
5861
* The annotation is load-bearing, not decoration (#10868). `defineStack`
@@ -87,6 +90,9 @@ const config: ObjectStackDefinition = defineStack({
8790
{ 'ar': { objects: arObjects } },
8891
{ 'fr': { objects: frObjects } },
8992
{ 'pt-BR': { objects: ptBRObjects } },
93+
{ 'ru': { objects: ruObjects } },
94+
{ 'de': { objects: deObjects } },
95+
{ 'ko': { objects: koObjects } },
9096
],
9197
});
9298

‎packages/services/service-messaging/src/objects/admin-copy-vocabulary.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ import { zhHantObjects } from '../translations/zh-Hant.objects.generated.js';
3030
import { arObjects } from '../translations/ar.objects.generated.js';
3131
import { frObjects } from '../translations/fr.objects.generated.js';
3232
import { ptBRObjects } from '../translations/pt-BR.objects.generated.js';
33+
import { ruObjects } from '../translations/ru.objects.generated.js';
34+
import { deObjects } from '../translations/de.objects.generated.js';
35+
import { koObjects } from '../translations/ko.objects.generated.js';
3336

3437
/** The design-record vocabulary an admin-facing string must not carry. */
3538
const DESIGN_RECORD_VOCABULARY: ReadonlyArray<readonly [string, RegExp]> = [
@@ -103,6 +106,9 @@ const OBJECT_BUNDLES = {
103106
'ar': arObjects,
104107
'fr': frObjects,
105108
'pt-BR': ptBRObjects,
109+
'ru': ruObjects,
110+
'de': deObjects,
111+
'ko': koObjects,
106112
} as const;
107113

108114
describe('messaging objects: admin-facing copy carries no design-record vocabulary', () => {

‎packages/services/service-messaging/src/objects/setup-list-empty-states.test.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ import { zhHantObjects } from '../translations/zh-Hant.objects.generated.js';
3232
import { arObjects } from '../translations/ar.objects.generated.js';
3333
import { frObjects } from '../translations/fr.objects.generated.js';
3434
import { ptBRObjects } from '../translations/pt-BR.objects.generated.js';
35+
import { ruObjects } from '../translations/ru.objects.generated.js';
36+
import { deObjects } from '../translations/de.objects.generated.js';
37+
import { koObjects } from '../translations/ko.objects.generated.js';
3538

3639
interface ViewLike {
3740
columns?: unknown;
@@ -58,6 +61,9 @@ const BUNDLES = {
5861
'ar': arObjects,
5962
'fr': frObjects,
6063
'pt-BR': ptBRObjects,
64+
'ru': ruObjects,
65+
'de': deObjects,
66+
'ko': koObjects,
6167
} as const;
6268

6369
function views(def: ObjectLike): Array<[string, ViewLike]> {

0 commit comments

Comments
 (0)