From 2ef9d0883afa997d1e34f26bc471de77840a8ce8 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 17:30:45 +0000 Subject: [PATCH] i18n(service-messaging): ship the notification objects and digest heading in ru, de and ko Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6Cai5CRdAs4u9gTipWU --- .../30512-service-messaging-locales-b.md | 10 + .../scripts/i18n-extract.config.ts | 8 +- .../src/objects/admin-copy-vocabulary.test.ts | 6 + .../objects/setup-list-empty-states.test.ts | 6 + .../src/translations/de.objects.generated.ts | 485 ++++++++++++++++++ .../de.source-hashes.generated.ts | 32 ++ .../src/translations/index.ts | 18 + .../src/translations/ko.objects.generated.ts | 485 ++++++++++++++++++ .../ko.source-hashes.generated.ts | 26 + .../src/translations/messages.ts | 32 +- .../src/translations/ru.objects.generated.ts | 485 ++++++++++++++++++ .../ru.source-hashes.generated.ts | 26 + 12 files changed, 1610 insertions(+), 9 deletions(-) create mode 100644 .changeset/30512-service-messaging-locales-b.md create mode 100644 packages/services/service-messaging/src/translations/de.objects.generated.ts create mode 100644 packages/services/service-messaging/src/translations/de.source-hashes.generated.ts create mode 100644 packages/services/service-messaging/src/translations/ko.objects.generated.ts create mode 100644 packages/services/service-messaging/src/translations/ko.source-hashes.generated.ts create mode 100644 packages/services/service-messaging/src/translations/ru.objects.generated.ts create mode 100644 packages/services/service-messaging/src/translations/ru.source-hashes.generated.ts diff --git a/.changeset/30512-service-messaging-locales-b.md b/.changeset/30512-service-messaging-locales-b.md new file mode 100644 index 00000000000..239e9d5427a --- /dev/null +++ b/.changeset/30512-service-messaging-locales-b.md @@ -0,0 +1,10 @@ +--- +'@objectstack/service-messaging': patch +--- + +i18n(service-messaging): the notification objects and the digest heading ship in Russian, German and Korean + +Clause-②: no +Metadata-protocol: none + +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. diff --git a/packages/services/service-messaging/scripts/i18n-extract.config.ts b/packages/services/service-messaging/scripts/i18n-extract.config.ts index a6d2f07b15e..d1cc4b71c8a 100644 --- a/packages/services/service-messaging/scripts/i18n-extract.config.ts +++ b/packages/services/service-messaging/scripts/i18n-extract.config.ts @@ -7,7 +7,7 @@ * `--merge` preserves every hand-translated string. * * os i18n extract packages/services/service-messaging/scripts/i18n-extract.config.ts \ - * --locales=zh-CN,ja-JP,es-ES,zh-Hant,ar,fr,pt-BR --fill=default --objects-only --no-metadata-forms \ + * --locales=zh-CN,ja-JP,es-ES,zh-Hant,ar,fr,pt-BR,ru,de,ko --fill=default --objects-only --no-metadata-forms \ * --source-hashes \ * --out=packages/services/service-messaging/src/translations * @@ -53,6 +53,9 @@ import { zhHantObjects } from '../src/translations/zh-Hant.objects.generated.js' import { arObjects } from '../src/translations/ar.objects.generated.js'; import { frObjects } from '../src/translations/fr.objects.generated.js'; import { ptBRObjects } from '../src/translations/pt-BR.objects.generated.js'; +import { ruObjects } from '../src/translations/ru.objects.generated.js'; +import { deObjects } from '../src/translations/de.objects.generated.js'; +import { koObjects } from '../src/translations/ko.objects.generated.js'; /** * The annotation is load-bearing, not decoration (#10868). `defineStack` @@ -87,6 +90,9 @@ const config: ObjectStackDefinition = defineStack({ { 'ar': { objects: arObjects } }, { 'fr': { objects: frObjects } }, { 'pt-BR': { objects: ptBRObjects } }, + { 'ru': { objects: ruObjects } }, + { 'de': { objects: deObjects } }, + { 'ko': { objects: koObjects } }, ], }); diff --git a/packages/services/service-messaging/src/objects/admin-copy-vocabulary.test.ts b/packages/services/service-messaging/src/objects/admin-copy-vocabulary.test.ts index 2f1cb4c4210..a1d4d45a692 100644 --- a/packages/services/service-messaging/src/objects/admin-copy-vocabulary.test.ts +++ b/packages/services/service-messaging/src/objects/admin-copy-vocabulary.test.ts @@ -30,6 +30,9 @@ import { zhHantObjects } from '../translations/zh-Hant.objects.generated.js'; import { arObjects } from '../translations/ar.objects.generated.js'; import { frObjects } from '../translations/fr.objects.generated.js'; import { ptBRObjects } from '../translations/pt-BR.objects.generated.js'; +import { ruObjects } from '../translations/ru.objects.generated.js'; +import { deObjects } from '../translations/de.objects.generated.js'; +import { koObjects } from '../translations/ko.objects.generated.js'; /** The design-record vocabulary an admin-facing string must not carry. */ const DESIGN_RECORD_VOCABULARY: ReadonlyArray = [ @@ -103,6 +106,9 @@ const OBJECT_BUNDLES = { 'ar': arObjects, 'fr': frObjects, 'pt-BR': ptBRObjects, + 'ru': ruObjects, + 'de': deObjects, + 'ko': koObjects, } as const; describe('messaging objects: admin-facing copy carries no design-record vocabulary', () => { diff --git a/packages/services/service-messaging/src/objects/setup-list-empty-states.test.ts b/packages/services/service-messaging/src/objects/setup-list-empty-states.test.ts index 5d4a2c417c9..1581d59dac4 100644 --- a/packages/services/service-messaging/src/objects/setup-list-empty-states.test.ts +++ b/packages/services/service-messaging/src/objects/setup-list-empty-states.test.ts @@ -32,6 +32,9 @@ import { zhHantObjects } from '../translations/zh-Hant.objects.generated.js'; import { arObjects } from '../translations/ar.objects.generated.js'; import { frObjects } from '../translations/fr.objects.generated.js'; import { ptBRObjects } from '../translations/pt-BR.objects.generated.js'; +import { ruObjects } from '../translations/ru.objects.generated.js'; +import { deObjects } from '../translations/de.objects.generated.js'; +import { koObjects } from '../translations/ko.objects.generated.js'; interface ViewLike { columns?: unknown; @@ -58,6 +61,9 @@ const BUNDLES = { 'ar': arObjects, 'fr': frObjects, 'pt-BR': ptBRObjects, + 'ru': ruObjects, + 'de': deObjects, + 'ko': koObjects, } as const; function views(def: ObjectLike): Array<[string, ViewLike]> { diff --git a/packages/services/service-messaging/src/translations/de.objects.generated.ts b/packages/services/service-messaging/src/translations/de.objects.generated.ts new file mode 100644 index 00000000000..ce110b13356 --- /dev/null +++ b/packages/services/service-messaging/src/translations/de.objects.generated.ts @@ -0,0 +1,485 @@ +// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'de'. + * Edit translations in place; re-run extract (with --merge) to fill new gaps. + * Do not hand-edit the structure — only the leaf string values. + * Merge only fills gaps: correcting a source label/description does not + * push the correction into a leaf here that already holds a translation — + * a present-but-stale string is not a gap, so it is left as-is. Re-translate + * it by hand when its source changes; nothing here or in `os i18n check` + * tells a leaf a translator updated on purpose from one nobody has looked + * at since the source moved. + */ + +import type { TranslationData } from '@objectstack/spec/system'; + +export const deObjects: NonNullable = { + sys_inbox_message: { + label: "Posteingangsnachricht", + pluralLabel: "Posteingangsnachrichten", + description: "Benutzerseitige In-App-Benachrichtigungszeilen, die der Posteingangskanal materialisiert.", + fields: { + id: { + label: "Nachrichten-ID" + }, + user_id: { + label: "Empfangender Benutzer" + }, + notification_id: { + label: "Benachrichtigungsereignis", + help: "Fremdschlüssel → sys_notification (das L2-Ereignis, das diese Zeile materialisiert)" + }, + delivery_id: { + label: "Zustellung", + help: "Fremdschlüssel → sys_notification_delivery (Postausgangszeile); null bis P1" + }, + actor_id: { + label: "Akteur", + help: "Benutzer, der das Ereignis ausgelöst hat (Erwähnende, Zuweisende) — gleiche Semantik wie sys_notification.actor_id. Ermöglicht einem Client, eigene Bestätigungen per rein lokalem Vergleich auszublenden. Bei einer Sammelzeile konstruktionsbedingt null: Eine zusammengefasste Gruppe hat keinen einzelnen Akteur." + }, + topic: { + label: "Thema" + }, + title: { + label: "Titel" + }, + body_md: { + label: "Inhalt" + }, + severity: { + label: "Schweregrad", + options: { + info: "Info", + warning: "Warnung", + critical: "Kritisch" + } + }, + action_url: { + label: "Aktions-URL" + }, + created_at: { + label: "Erstellt am" + } + }, + _views: { + mine: { + label: "Benachrichtigungen", + emptyState: { + title: "Posteingang leer", + message: "Keine Benachrichtigungen." + } + } + } + }, + sys_notification_receipt: { + label: "Benachrichtigungsbestätigung", + pluralLabel: "Benachrichtigungsbestätigungen", + description: "Bestätigung je Empfänger × Kanal; die maßgebliche Quelle für den Lesestatus von Benachrichtigungen.", + fields: { + id: { + label: "Bestätigungs-ID" + }, + notification_id: { + label: "Benachrichtigungsereignis", + help: "Fremdschlüssel → sys_notification (L2-Ereignis)" + }, + delivery_id: { + label: "Zustellung", + help: "Fremdschlüssel → sys_notification_delivery (Postausgangszeile); null bis P1" + }, + user_id: { + label: "Empfangender Benutzer" + }, + channel: { + label: "Kanal", + help: "Kanal-ID, für die diese Bestätigung gilt (inbox / email / push / …)" + }, + state: { + label: "Zustand", + options: { + delivered: "zugestellt", + read: "gelesen", + clicked: "angeklickt", + dismissed: "verworfen" + } + }, + at: { + label: "Zeitpunkt", + help: "Wann die Bestätigung ihren aktuellen Zustand erreicht hat" + }, + created_at: { + label: "Erstellt am" + } + } + }, + sys_notification_delivery: { + label: "Benachrichtigungszustellung", + pluralLabel: "Benachrichtigungszustellungen", + description: "Dauerhafter Zustellungs-Postausgang je Empfänger × Kanal.", + fields: { + id: { + label: "Zustellungs-ID" + }, + display_title: { + label: "Titel", + help: "Datensatztitel: der Zustellkanal und die Person, für die er bestimmt ist, oder die Adresse, wenn der Empfänger kein Benutzer ist (beim Lesen berechnet)" + }, + notification_id: { + label: "Benachrichtigungsereignis", + help: "Fremdschlüssel → sys_notification (L2-Ereignis)" + }, + recipient_id: { + label: "Empfänger", + help: "Die Adresse, an die die Zustellung geht: eine Benutzer-ID oder eine E-Mail-Adresse bzw. Telefonnummer wie angegeben." + }, + recipient_user_id: { + label: "Empfangender Benutzer", + help: "Der Benutzer, für den die Zustellung bestimmt ist. Leer, wenn der Empfänger eine E-Mail-Adresse oder Telefonnummer ist, die keinem Benutzer gehört." + }, + channel: { + label: "Kanal" + }, + topic: { + label: "Thema" + }, + digest_key: { + label: "Sammelschlüssel", + help: "Gruppierungsschlüssel recipient|channel|window für gebündelte Zustellungen (Zusammenfassung); null bei normalen Sendungen." + }, + payload: { + label: "Nutzlast", + help: "Momentaufnahme des gerenderten Benachrichtigungsinhalts für den Versand." + }, + status: { + label: "Status", + options: { + pending: "ausstehend", + in_flight: "in Zustellung", + success: "erfolgreich", + failed: "fehlgeschlagen", + dead: "unzustellbar", + suppressed: "unterdrückt" + } + }, + attempts: { + label: "Versuche" + }, + partition_key: { + label: "Partitionsschlüssel" + }, + claimed_by: { + label: "Beansprucht von", + help: "Knoten-ID während in_flight" + }, + claimed_at: { + label: "Beansprucht am (ms)" + }, + next_attempt_at: { + label: "Nächster Versuch am (ms)" + }, + last_attempted_at: { + label: "Letzter Versuch am (ms)" + }, + error: { + label: "Fehler" + }, + created_at: { + label: "Erstellt am" + }, + updated_at: { + label: "Aktualisiert am" + } + } + }, + sys_notification_preference: { + label: "Benachrichtigungseinstellung", + pluralLabel: "Benachrichtigungseinstellungen", + description: "Welche Themen und Kanäle jeder Benutzer erhält; Administratoren legen die Standardwerte fest.", + fields: { + id: { + label: "Einstellungs-ID" + }, + display_title: { + label: "Titel", + help: "Datensatztitel: die Person (oder All users), das Thema und der Kanal, die dieser Schalter abdeckt (beim Lesen berechnet)" + }, + user_id: { + label: "Benutzer", + help: "Der Benutzer, für den diese Einstellung gilt. Leer lassen für den Standard, der für alle Benutzer gilt." + }, + topic: { + label: "Thema", + help: "Das Thema, unter dem Benachrichtigungen gesendet werden: das Thema, das der Benachrichtigungsschritt eines Flows nennt, oder eines, das die Plattform sendet, etwa approval.requested oder collab.mention. Geben Sie * für alle Themen ein. Ein Thema, unter dem nichts gesendet wird, trifft auf nichts zu." + }, + channel: { + label: "Kanal", + help: "Der Kanal: inbox (Benachrichtigungen in der App, immer verfügbar), email (sobald ein E-Mail-Dienst konfiguriert ist), sms (sobald ein SMS-Dienst konfiguriert ist) oder die ID eines Kanals, den ein installiertes Plugin hinzufügt. Geben Sie * für alle Kanäle ein. Eine ID, die kein Kanal verwendet, trifft auf nichts zu." + }, + enabled: { + label: "Aktiviert", + help: "Bei false ist diese Kombination (Benutzer, Thema, Kanal) stummgeschaltet." + }, + digest: { + label: "Zusammenfassung", + help: "Fasst diese Benachrichtigungen zu einer Zusammenfassung zusammen, statt jede beim Eintreffen zu senden: daily sendet um Mitternacht, weekly montags um Mitternacht, none sendet jede sofort. Kritische Benachrichtigungen werden immer sofort gesendet. Wirkt bei einer Einstellung mit dem Kanal * (alle Kanäle).", + options: { + none: "keiner", + daily: "täglich", + weekly: "wöchentlich" + } + }, + quiet_hours: { + label: "Ruhezeiten", + help: "Ein tägliches Zeitfenster, in dem Benachrichtigungen zurückgehalten und an seinem Ende zugestellt werden, zum Beispiel { \"tz\": \"Europe/Berlin\", \"start\": \"22:00\", \"end\": \"07:00\" }. Zeiten sind HH:MM in dieser Zeitzone (UTC, wenn tz fehlt), und das Fenster darf über Mitternacht reichen. Kritische Benachrichtigungen werden nicht zurückgehalten. Wirkt bei einer Einstellung mit dem Kanal * (alle Kanäle)." + }, + created_at: { + label: "Erstellt am" + }, + updated_at: { + label: "Aktualisiert am" + } + }, + _views: { + all: { + label: "Alle", + emptyState: { + title: "Noch keine Einstellungen", + message: "Nichts ist stummgeschaltet, bis eine Einstellung hinzugefügt wird; fügen Sie eine hinzu, um ein Thema auf einem Kanal stummzuschalten oder zuzulassen — für einen Benutzer oder als Standard für alle." + } + } + } + }, + sys_notification_template: { + label: "Benachrichtigungsvorlage", + pluralLabel: "Benachrichtigungsvorlagen", + description: "Der E-Mail- und SMS-Text, den jedes Benachrichtigungsthema je Sprache sendet. Der In-App-Posteingang verwendet diese Vorlagen nie.", + fields: { + id: { + label: "Vorlagen-ID" + }, + topic: { + label: "Thema" + }, + channel: { + label: "Kanal", + help: "Welcher Kanal diese Vorlage verwendet: email oder sms; jeder andere Wert wird abgelehnt. Der In-App-Posteingang verwendet sie nie; für In-App-Inhalte schreiben Sie eine E-Mail-Vorlage und nennen sie im template eines Benachrichtigungsschritts." + }, + locale: { + label: "Sprache", + help: "BCP-47-Sprachcode, z. B. 'en' / 'en-US' / 'zh-CN'." + }, + version: { + label: "Version" + }, + subject: { + label: "Betreff / Titel", + help: "Der E-Mail-Betreff; eine SMS sendet ihn nur, wenn der Inhalt leer ist. Unterstützt {{ payload.x }}." + }, + body: { + label: "Inhalt", + help: "Vorlageninhalt. Unterstützt {{ payload.x }}. Wird gemäß `format` interpretiert." + }, + format: { + label: "Inhaltsformat", + options: { + markdown: "Markdown", + html: "HTML", + text: "Nur-Text", + mjml: "MJML" + } + }, + is_active: { + label: "Aktiv", + help: "Beim Rendern werden nur aktive Vorlagen ausgewählt." + }, + created_at: { + label: "Erstellt am" + }, + updated_at: { + label: "Aktualisiert am" + } + }, + _views: { + all: { + label: "Alle", + emptyState: { + title: "Noch keine Vorlagen", + message: "Fügen Sie eine Vorlage je Thema, Kanal (E-Mail oder SMS) und Sprache hinzu; bis dahin senden diese Kanäle den Titel und Inhalt, den die Benachrichtigung mitbringt. In-App-Inhalte stammen aus einer E-Mail-Vorlage: Eine Benachrichtigung, die eine nennt, sendet sie per E-Mail und in den Posteingang, und SMS verwendet weiterhin die Vorlage hier." + } + } + }, + _validations: { + channel_renders_template: { + message: "Nur die Kanäle email und sms verwenden eine Benachrichtigungsvorlage, daher wird eine Vorlage für jeden anderen Kanal abgelehnt: Setzen Sie channel auf email oder sms oder löschen Sie die Vorlage. Für In-App-Inhalte (Posteingang) schreiben Sie eine E-Mail-Vorlage (email_template) und nennen sie im template des Benachrichtigungsschritts; E-Mail und Posteingang rendern sie beide." + } + } + }, + sys_http_delivery: { + label: "HTTP-Zustellung", + pluralLabel: "HTTP-Zustellungen", + description: "Ausgehende HTTP-Aufrufe von Webhooks und Flows, eine Zeile pro Aufruf, mit ihrem Zustellstatus.", + fields: { + id: { + label: "Zustellungs-ID", + help: "UUID — dient zugleich als Idempotenzschlüssel auf Empfängerseite" + }, + display_title: { + label: "Titel", + help: "Datensatztitel: die Zustellbezeichnung, sofern gesetzt, und ihre Ziel-URL (beim Lesen berechnet)" + }, + source: { + label: "Quelle", + help: "Herkunftsdomäne, z. B. 'webhook' | 'flow'. UNIQUE(source, dedup_key)." + }, + ref_id: { + label: "Referenz-ID", + help: "Partitions-/Reihenfolgeanker innerhalb der Quelle (Webhook-ID, Flow-ID, …)" + }, + dedup_key: { + label: "Deduplizierungsschlüssel", + help: "UNIQUE(source, dedup_key) für höchstens einmaliges Einreihen" + }, + label: { + label: "Bezeichnung", + help: "Diagnosebezeichnung / Ereignistyp — erscheint in X-Objectstack-Event" + }, + url: { + label: "Ziel-URL", + help: "Beim Einreihen festgehalten, damit Konfigurationsänderungen aktive Zeilen nicht umschreiben" + }, + method: { + label: "Methode" + }, + headers_json: { + label: "Header-JSON", + help: "Verfasste Request-Header für diese Zustellung — der übliche Ort für Zugangsdaten, daher nie über den allgemeinen Datenpfad zurückgegeben. Der Dispatcher holt sie beim Beanspruchen über den privilegierten Zugriff der Engine." + }, + signature: { + label: "HMAC-Signatur", + help: "Mit dieser Zustellung gesendete X-Objectstack-Signature (sha256=). Beim Einreihen berechnet; das Signaturgeheimnis wird nie gespeichert." + }, + timeout_ms: { + label: "Zeitlimit (ms)" + }, + payload_json: { + label: "Nutzlast-JSON" + }, + partition_key: { + label: "Partition", + help: "hash(ref_id) mod partitionCount — vorberechnet für ein günstiges WHERE" + }, + status: { + label: "Status", + help: "pending | in_flight | success | failed | dead" + }, + attempts: { + label: "Versuche", + help: "Anzahl der bisherigen Versuche. 0 bei einer Endzustandszeile bedeutet, dass die Zustellung PARKED wurde — nie gesendet und nicht erneut zustellbar, weil sie keine Signatur trägt; die Ursache steht in `error`." + }, + claimed_by: { + label: "Beansprucht von" + }, + claimed_at: { + label: "Beansprucht am (ms)" + }, + next_retry_at: { + label: "Nächster Wiederholungsversuch am (ms)" + }, + last_attempted_at: { + label: "Letzter Versuch am (ms)" + }, + response_code: { + label: "HTTP-Status" + }, + response_body: { + label: "Antworttext (gekürzt)" + }, + error: { + label: "Fehler", + help: "Warum diese Zeile kein zugestellter Aufruf ist: der letzte Transportfehler oder — bei einer Zeile mit 0 Versuchen — warum die Zustellung nie vorbereitet werden konnte." + }, + created_at: { + label: "Erstellt am" + }, + updated_at: { + label: "Aktualisiert am" + } + }, + _views: { + recent: { + label: "Neueste" + }, + failures: { + label: "Fehlschläge" + }, + pending: { + label: "Ausstehend" + } + } + }, + sys_user_device: { + label: "Benutzergerät", + pluralLabel: "Benutzergeräte", + description: "Das Push-Gerät eines Benutzers: eine Zeile pro App-Installation mit ihrem Push-Token des Anbieters.", + fields: { + id: { + label: "Zeilen-ID" + }, + device_id: { + label: "Geräte-ID", + help: "Clientseitige Geräte-ID, stabil je App-Installation. Je Benutzer eindeutig." + }, + user_id: { + label: "Benutzer", + help: "Der Benutzer, dem das Gerät gehört: der angemeldete Benutzer, der es registriert hat." + }, + vendor: { + label: "Anbieter", + help: "Push-Anbieter, zu dem das Token gehört.", + options: { + apns: "APNs", + fcm: "FCM" + } + }, + token: { + label: "Push-Token", + help: "Push-Token des Anbieters. Wird jeweils nur von einem Gerät gehalten." + }, + platform: { + label: "Plattform", + options: { + ios: "iOS", + android: "Android", + web: "Web" + } + }, + app_id: { + label: "App-ID", + help: "Die iOS-Bundle-ID oder Android-Anwendungs-ID, für die das Token ausgestellt wurde." + }, + locale: { + label: "Gebietsschema", + help: "Gebietsschema des Geräts, wie es bei der Registrierung angegeben wurde. Wird für das Gerät gespeichert; keine Push-Nachricht wird danach dargestellt: Eine Push-Nachricht kommt in der Sprache des Empfängers an (seiner Benutzersprache, sonst der Standardsprache der Bereitstellung)." + }, + name: { + label: "Gerätename" + }, + enabled: { + label: "Aktiviert", + help: "False, sobald der Anbieter das Token als ungültig gemeldet hat; an ein deaktiviertes Gerät wird nichts zugestellt." + }, + invalidated_at: { + label: "Ungültig seit", + help: "Wann der Anbieter das Token als ungültig gemeldet hat. Wird durch die Registrierung gelöscht, die es wieder aktiviert." + }, + last_seen_at: { + label: "Zuletzt gesehen", + help: "Wann sich das Gerät zuletzt registriert oder aktualisiert hat." + }, + created_at: { + label: "Erstellt am" + } + } + } +}; diff --git a/packages/services/service-messaging/src/translations/de.source-hashes.generated.ts b/packages/services/service-messaging/src/translations/de.source-hashes.generated.ts new file mode 100644 index 00000000000..af38a4cb4a4 --- /dev/null +++ b/packages/services/service-messaging/src/translations/de.source-hashes.generated.ts @@ -0,0 +1,32 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'de'. Do not hand-edit. + * + * Each entry is the digest of the SOURCE REVISION that this locale's leaf at + * that path is still a byte copy of — provenance for the generated half of the + * bundles (commit 09b4f4e4e): a leaf whose digest no longer matches its source is stale and serves the source text instead. + * + * An entry exists only while the leaf IS such a copy. Re-translate the leaf in + * `.objects.generated.ts` and the next extract drops its entry by + * itself — the table makes no claim about text a translator wrote. A path with + * no entry is LEGACY-TRUSTED and never reported stale. + * + * ⚠️ Do not "fix" a staleness report by editing this file. Refreshing a digest + * records that the current text was copied from the current source, which is + * the false claim the mechanism exists to detect. Fix the TRANSLATION. + */ + +export const deGeneratedSourceHashes: Readonly> = { + "objects.sys_http_delivery.fields.partition_key.label": "ff6e8336a279020a", + "objects.sys_http_delivery.fields.status.help": "e437ecf81dfb4715", + "objects.sys_http_delivery.fields.status.label": "64a420165247654b", + "objects.sys_inbox_message.fields.severity.options.info": "592615dc5222c9a4", + "objects.sys_notification_delivery.fields.status.label": "64a420165247654b", + "objects.sys_notification_template.fields.version.label": "b74a37c0879ec50e", + "objects.sys_user_device.fields.platform.options.android": "44fa27bdaae7f812", + "objects.sys_user_device.fields.platform.options.ios": "461f32943613be91", + "objects.sys_user_device.fields.platform.options.web": "2a7ead3da8c035c5", + "objects.sys_user_device.fields.vendor.options.apns": "b6edcf327f308698", + "objects.sys_user_device.fields.vendor.options.fcm": "fc3b030ffd243df4", +}; diff --git a/packages/services/service-messaging/src/translations/index.ts b/packages/services/service-messaging/src/translations/index.ts index fe6f0a9e648..521990d6ebc 100644 --- a/packages/services/service-messaging/src/translations/index.ts +++ b/packages/services/service-messaging/src/translations/index.ts @@ -23,6 +23,9 @@ import { zhHantObjects } from './zh-Hant.objects.generated.js'; import { arObjects } from './ar.objects.generated.js'; import { frObjects } from './fr.objects.generated.js'; import { ptBRObjects } from './pt-BR.objects.generated.js'; +import { ruObjects } from './ru.objects.generated.js'; +import { deObjects } from './de.objects.generated.js'; +import { koObjects } from './ko.objects.generated.js'; import { zhCNGeneratedSourceHashes } from './zh-CN.source-hashes.generated.js'; import { jaJPGeneratedSourceHashes } from './ja-JP.source-hashes.generated.js'; import { esESGeneratedSourceHashes } from './es-ES.source-hashes.generated.js'; @@ -30,6 +33,9 @@ import { zhHantGeneratedSourceHashes } from './zh-Hant.source-hashes.generated.j import { arGeneratedSourceHashes } from './ar.source-hashes.generated.js'; import { frGeneratedSourceHashes } from './fr.source-hashes.generated.js'; import { ptBRGeneratedSourceHashes } from './pt-BR.source-hashes.generated.js'; +import { ruGeneratedSourceHashes } from './ru.source-hashes.generated.js'; +import { deGeneratedSourceHashes } from './de.source-hashes.generated.js'; +import { koGeneratedSourceHashes } from './ko.source-hashes.generated.js'; import { messagingMessages } from './messages.js'; /** @@ -99,4 +105,16 @@ export const MessagingTranslations: TranslationBundle = { { objects: ptBRObjects, messages: messagingMessages['pt-BR'] }, enSource, undefined, ptBRGeneratedSourceHashes, ), + 'ru': withSourceFallback( + { objects: ruObjects, messages: messagingMessages['ru'] }, + enSource, undefined, ruGeneratedSourceHashes, + ), + 'de': withSourceFallback( + { objects: deObjects, messages: messagingMessages['de'] }, + enSource, undefined, deGeneratedSourceHashes, + ), + 'ko': withSourceFallback( + { objects: koObjects, messages: messagingMessages['ko'] }, + enSource, undefined, koGeneratedSourceHashes, + ), }; diff --git a/packages/services/service-messaging/src/translations/ko.objects.generated.ts b/packages/services/service-messaging/src/translations/ko.objects.generated.ts new file mode 100644 index 00000000000..786af772fbd --- /dev/null +++ b/packages/services/service-messaging/src/translations/ko.objects.generated.ts @@ -0,0 +1,485 @@ +// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'ko'. + * Edit translations in place; re-run extract (with --merge) to fill new gaps. + * Do not hand-edit the structure — only the leaf string values. + * Merge only fills gaps: correcting a source label/description does not + * push the correction into a leaf here that already holds a translation — + * a present-but-stale string is not a gap, so it is left as-is. Re-translate + * it by hand when its source changes; nothing here or in `os i18n check` + * tells a leaf a translator updated on purpose from one nobody has looked + * at since the source moved. + */ + +import type { TranslationData } from '@objectstack/spec/system'; + +export const koObjects: NonNullable = { + sys_inbox_message: { + label: "받은편지함 메시지", + pluralLabel: "받은편지함 메시지", + description: "받은편지함 메시징 채널이 구체화하는 사용자용 앱 내 알림 행입니다.", + fields: { + id: { + label: "받은편지함 메시지 ID" + }, + user_id: { + label: "수신 사용자" + }, + notification_id: { + label: "알림 이벤트", + help: "외래 키 → sys_notification(이 행이 구체화하는 L2 이벤트)" + }, + delivery_id: { + label: "전송", + help: "외래 키 → sys_notification_delivery(발신함 행). P1 전까지 null" + }, + actor_id: { + label: "작업자", + help: "이벤트를 일으킨 사용자(멘션한 사람, 할당한 사람)로, sys_notification.actor_id와 의미가 같습니다. 클라이언트는 순수 로컬 비교만으로 자신이 일으킨 수신 확인을 숨길 수 있습니다. 다이제스트 행은 구조상 null입니다. 합쳐진 그룹에는 단일 작업자가 없기 때문입니다." + }, + topic: { + label: "토픽" + }, + title: { + label: "제목" + }, + body_md: { + label: "본문" + }, + severity: { + label: "심각도", + options: { + info: "정보", + warning: "경고", + critical: "심각" + } + }, + action_url: { + label: "작업 URL" + }, + created_at: { + label: "생성 일시" + } + }, + _views: { + mine: { + label: "알림", + emptyState: { + title: "받은편지함 비어 있음", + message: "알림이 없습니다." + } + } + } + }, + sys_notification_receipt: { + label: "알림 수신 확인", + pluralLabel: "알림 수신 확인", + description: "수신자 × 채널별 수신 확인이며, 알림 읽음 상태의 기준 데이터입니다.", + fields: { + id: { + label: "수신 확인 ID" + }, + notification_id: { + label: "알림 이벤트", + help: "외래 키 → sys_notification(L2 이벤트)" + }, + delivery_id: { + label: "전송", + help: "외래 키 → sys_notification_delivery(발신함 행). P1 전까지 null" + }, + user_id: { + label: "수신 사용자" + }, + channel: { + label: "채널", + help: "이 수신 확인이 해당하는 채널 ID(inbox / email / push / …)" + }, + state: { + label: "상태", + options: { + delivered: "전달됨", + read: "읽음", + clicked: "클릭됨", + dismissed: "닫음" + } + }, + at: { + label: "일시", + help: "수신 확인이 현재 상태가 된 시각" + }, + created_at: { + label: "생성 일시" + } + } + }, + sys_notification_delivery: { + label: "알림 전송", + pluralLabel: "알림 전송", + description: "수신자 × 채널별 영속 전송 발신함입니다.", + fields: { + id: { + label: "전송 ID" + }, + display_title: { + label: "제목", + help: "레코드 제목: 전송 채널과 대상 사용자, 또는 수신자가 사용자가 아니면 해당 주소(읽을 때 계산됨)" + }, + notification_id: { + label: "알림 이벤트", + help: "외래 키 → sys_notification(L2 이벤트)" + }, + recipient_id: { + label: "수신자", + help: "전송이 보내지는 주소입니다. 사용자 ID이거나, 입력한 그대로 보관한 이메일 주소 또는 전화번호입니다." + }, + recipient_user_id: { + label: "수신 사용자", + help: "이 전송의 대상 사용자입니다. 수신자가 어떤 사용자에게도 속하지 않는 이메일 주소나 전화번호이면 비어 있습니다." + }, + channel: { + label: "채널" + }, + topic: { + label: "토픽" + }, + digest_key: { + label: "다이제스트 키", + help: "일괄(다이제스트) 전송용 recipient|channel|window 그룹 키이며, 일반 전송은 null입니다." + }, + payload: { + label: "페이로드", + help: "발송용으로 렌더링한 알림 콘텐츠의 스냅샷입니다." + }, + status: { + label: "상태", + options: { + pending: "대기 중", + in_flight: "전송 중", + success: "성공", + failed: "실패", + dead: "데드 레터", + suppressed: "억제됨" + } + }, + attempts: { + label: "시도 횟수" + }, + partition_key: { + label: "파티션 키" + }, + claimed_by: { + label: "클레임한 노드", + help: "in_flight 동안의 노드 ID" + }, + claimed_at: { + label: "클레임 일시(ms)" + }, + next_attempt_at: { + label: "다음 시도 일시(ms)" + }, + last_attempted_at: { + label: "마지막 시도 일시(ms)" + }, + error: { + label: "오류" + }, + created_at: { + label: "생성 일시" + }, + updated_at: { + label: "수정 일시" + } + } + }, + sys_notification_preference: { + label: "알림 기본 설정", + pluralLabel: "알림 기본 설정", + description: "사용자별로 받을 토픽과 채널을 정합니다. 기본값은 관리자가 설정합니다.", + fields: { + id: { + label: "기본 설정 ID" + }, + display_title: { + label: "제목", + help: "레코드 제목: 이 설정이 적용되는 사람(또는 All users), 토픽, 채널(읽을 때 계산됨)" + }, + user_id: { + label: "사용자", + help: "이 기본 설정이 적용되는 사용자입니다. 모든 사용자에게 적용되는 기본값이면 비워 두세요." + }, + topic: { + label: "토픽", + help: "알림을 보낼 때 쓰는 토픽입니다. 플로의 알림 단계가 지정한 토픽이나 approval.requested, collab.mention처럼 플랫폼이 보내는 토픽입니다. 모든 토픽은 * 를 입력하세요. 아무것도 보내지 않는 토픽은 어떤 알림과도 일치하지 않습니다." + }, + channel: { + label: "채널", + help: "채널: inbox(앱 안에 표시되는 알림, 항상 사용 가능), email(이메일 서비스 구성 후), sms(SMS 서비스 구성 후), 또는 설치된 플러그인이 추가한 채널 ID입니다. 모든 채널은 * 를 입력하세요. 어떤 채널도 쓰지 않는 ID는 어떤 알림과도 일치하지 않습니다." + }, + enabled: { + label: "사용", + help: "false이면 이 (사용자, 토픽, 채널) 조합은 음소거됩니다." + }, + digest: { + label: "다이제스트", + help: "이 알림들을 도착할 때마다 보내지 않고 하나의 요약으로 모읍니다. daily는 자정에, weekly는 월요일 자정에 보내고, none은 하나씩 바로 보냅니다. 심각한 알림은 항상 즉시 보냅니다. 채널이 *(모든 채널)인 기본 설정에서만 적용됩니다.", + options: { + none: "안 함", + daily: "매일", + weekly: "매주" + } + }, + quiet_hours: { + label: "방해 금지 시간", + help: "알림을 보류했다가 끝날 때 전달하는 하루 중 시간대입니다. 예: { \"tz\": \"Europe/Berlin\", \"start\": \"22:00\", \"end\": \"07:00\" }. 시간은 해당 시간대의 HH:MM(tz를 생략하면 UTC)이며, 자정을 넘겨도 됩니다. 심각한 알림은 보류되지 않습니다. 채널이 *(모든 채널)인 기본 설정에서만 적용됩니다." + }, + created_at: { + label: "생성 일시" + }, + updated_at: { + label: "수정 일시" + } + }, + _views: { + all: { + label: "전체", + emptyState: { + title: "아직 기본 설정 없음", + message: "기본 설정을 추가하기 전에는 아무것도 음소거되지 않습니다. 한 사용자 또는 모든 사람의 기본값으로 특정 채널의 토픽을 음소거하거나 허용하려면 추가하세요." + } + } + } + }, + sys_notification_template: { + label: "알림 템플릿", + pluralLabel: "알림 템플릿", + description: "알림 토픽별로 언어마다 보내는 이메일 및 SMS 텍스트입니다. 앱 내 받은편지함은 이 템플릿을 사용하지 않습니다.", + fields: { + id: { + label: "템플릿 ID" + }, + topic: { + label: "토픽" + }, + channel: { + label: "채널", + help: "이 템플릿을 쓰는 채널: email 또는 sms이며, 다른 값은 거부됩니다. 앱 내 받은편지함은 사용하지 않습니다. 앱 내 콘텐츠가 필요하면 이메일 템플릿을 작성해 알림 단계의 template에 지정하세요." + }, + locale: { + label: "언어", + help: "BCP-47 언어 코드(예: 'en' / 'en-US' / 'zh-CN')." + }, + version: { + label: "버전" + }, + subject: { + label: "제목 / 타이틀", + help: "이메일 제목이며, SMS는 본문이 비어 있을 때만 보냅니다. {{ payload.x }}를 지원합니다." + }, + body: { + label: "본문", + help: "템플릿 본문입니다. {{ payload.x }}를 지원하며 `format`에 따라 해석됩니다." + }, + format: { + label: "본문 형식", + options: { + markdown: "Markdown", + html: "HTML", + text: "일반 텍스트", + mjml: "MJML" + } + }, + is_active: { + label: "활성", + help: "렌더링 시 활성 템플릿만 선택됩니다." + }, + created_at: { + label: "생성 일시" + }, + updated_at: { + label: "수정 일시" + } + }, + _views: { + all: { + label: "전체", + emptyState: { + title: "아직 템플릿 없음", + message: "토픽, 채널(이메일 또는 SMS), 언어별로 템플릿을 추가하세요. 그 전까지 이 채널들은 알림에 담긴 제목과 본문을 보냅니다. 앱 내 콘텐츠는 이메일 템플릿에서 옵니다. 템플릿을 지정한 알림은 이메일과 받은편지함으로 이를 보내며, SMS는 계속 여기의 템플릿을 사용합니다." + } + } + }, + _validations: { + channel_renders_template: { + message: "알림 템플릿은 email과 sms 채널만 사용하므로 다른 채널용 템플릿은 거부됩니다. channel을 email 또는 sms로 설정하거나 템플릿을 삭제하세요. 앱 내(받은편지함) 콘텐츠는 이메일 템플릿(email_template)을 작성해 알림 단계의 template에 지정하세요. 이메일과 받은편지함 모두 이를 렌더링합니다." + } + } + }, + sys_http_delivery: { + label: "HTTP 전송", + pluralLabel: "HTTP 전송", + description: "웹훅과 플로가 보내는 아웃바운드 HTTP 호출로, 호출마다 한 행이며 전송 상태를 함께 기록합니다.", + fields: { + id: { + label: "전송 ID", + help: "UUID — 수신 측의 멱등성 키로도 쓰입니다" + }, + display_title: { + label: "제목", + help: "레코드 제목: 설정된 경우 전송 레이블과 대상 URL(읽을 때 계산됨)" + }, + source: { + label: "출처", + help: "출처 도메인(예: 'webhook' | 'flow'). UNIQUE(source, dedup_key)." + }, + ref_id: { + label: "참조 ID", + help: "출처 안의 파티션/순서 기준점(webhook ID, flow ID 등)" + }, + dedup_key: { + label: "중복 제거 키", + help: "최대 한 번만 대기열에 넣기 위한 UNIQUE(source, dedup_key)" + }, + label: { + label: "레이블", + help: "진단 레이블 / 이벤트 유형 — X-Objectstack-Event로 노출됩니다" + }, + url: { + label: "대상 URL", + help: "대기열에 넣을 때 스냅샷으로 남겨, 구성을 바꿔도 활성 행이 바뀌지 않습니다" + }, + method: { + label: "메서드" + }, + headers_json: { + label: "헤더 JSON", + help: "이 전송에 작성된 요청 헤더입니다. 자격 증명이 흔히 들어가는 곳이므로 일반 데이터 경로로는 반환되지 않습니다. 디스패처는 클레임 경로에서 엔진의 특권 접근자로 이를 가져옵니다." + }, + signature: { + label: "HMAC 서명", + help: "이 전송과 함께 보낸 X-Objectstack-Signature(sha256=)입니다. 대기열에 넣을 때 계산하며, 서명 비밀 키는 저장하지 않습니다." + }, + timeout_ms: { + label: "시간 제한(ms)" + }, + payload_json: { + label: "페이로드 JSON" + }, + partition_key: { + label: "파티션", + help: "hash(ref_id) mod partitionCount — 저비용 WHERE를 위해 미리 계산" + }, + status: { + label: "상태", + help: "pending | in_flight | success | failed | dead" + }, + attempts: { + label: "시도 횟수", + help: "지금까지의 시도 횟수입니다. 최종 상태 행에서 0이면 전송이 PARKED된 것으로, 서명이 없어 전송된 적도 없고 다시 전송할 수도 없습니다. 원인은 `error`를 보세요." + }, + claimed_by: { + label: "클레임한 노드" + }, + claimed_at: { + label: "클레임 일시(ms)" + }, + next_retry_at: { + label: "다음 재시도 일시(ms)" + }, + last_attempted_at: { + label: "마지막 시도 일시(ms)" + }, + response_code: { + label: "HTTP 상태" + }, + response_body: { + label: "응답 본문(잘림)" + }, + error: { + label: "오류", + help: "이 행이 전송 완료된 호출이 아닌 이유입니다. 마지막 전송 오류이거나, 시도 횟수가 0인 행이라면 전송을 준비하지 못한 이유입니다." + }, + created_at: { + label: "생성 일시" + }, + updated_at: { + label: "수정 일시" + } + }, + _views: { + recent: { + label: "최근" + }, + failures: { + label: "실패" + }, + pending: { + label: "대기 중" + } + } + }, + sys_user_device: { + label: "사용자 기기", + pluralLabel: "사용자 기기", + description: "사용자의 푸시 기기로, 앱 설치마다 한 행이며 공급업체 푸시 토큰을 보관합니다.", + fields: { + id: { + label: "행 ID" + }, + device_id: { + label: "기기 ID", + help: "클라이언트가 보관하는 기기 ID로, 앱 설치마다 고정됩니다. 사용자별로 고유합니다." + }, + user_id: { + label: "사용자", + help: "기기가 속한 사용자로, 기기를 등록한 로그인 사용자입니다." + }, + vendor: { + label: "공급업체", + help: "토큰이 속한 푸시 공급업체입니다.", + options: { + apns: "APNs", + fcm: "FCM" + } + }, + token: { + label: "푸시 토큰", + help: "공급업체 푸시 토큰입니다. 한 번에 한 기기만 보유합니다." + }, + platform: { + label: "플랫폼", + options: { + ios: "iOS", + android: "Android", + web: "웹" + } + }, + app_id: { + label: "앱 ID", + help: "토큰이 발급된 iOS 번들 ID 또는 Android 애플리케이션 ID입니다." + }, + locale: { + label: "로캘", + help: "등록 시 전달된 기기 로캘입니다. 기기에 저장되지만 어떤 푸시도 이 값으로 렌더링되지 않습니다. 푸시는 수신자의 언어(사용자 로캘, 없으면 배포 기본 언어)로 도착합니다." + }, + name: { + label: "기기 이름" + }, + enabled: { + label: "사용", + help: "공급업체가 토큰이 무효라고 알리면 false가 되며, 비활성화된 기기에는 아무것도 전송하지 않습니다." + }, + invalidated_at: { + label: "무효화 일시", + help: "공급업체가 토큰이 무효라고 알린 시각입니다. 기기를 다시 활성화하는 등록 시 지워집니다." + }, + last_seen_at: { + label: "마지막 확인", + help: "기기가 마지막으로 등록하거나 갱신한 시각입니다." + }, + created_at: { + label: "생성 일시" + } + } + } +}; diff --git a/packages/services/service-messaging/src/translations/ko.source-hashes.generated.ts b/packages/services/service-messaging/src/translations/ko.source-hashes.generated.ts new file mode 100644 index 00000000000..35ad7c1a456 --- /dev/null +++ b/packages/services/service-messaging/src/translations/ko.source-hashes.generated.ts @@ -0,0 +1,26 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'ko'. Do not hand-edit. + * + * Each entry is the digest of the SOURCE REVISION that this locale's leaf at + * that path is still a byte copy of — provenance for the generated half of the + * bundles (commit 09b4f4e4e): a leaf whose digest no longer matches its source is stale and serves the source text instead. + * + * An entry exists only while the leaf IS such a copy. Re-translate the leaf in + * `.objects.generated.ts` and the next extract drops its entry by + * itself — the table makes no claim about text a translator wrote. A path with + * no entry is LEGACY-TRUSTED and never reported stale. + * + * ⚠️ Do not "fix" a staleness report by editing this file. Refreshing a digest + * records that the current text was copied from the current source, which is + * the false claim the mechanism exists to detect. Fix the TRANSLATION. + */ + +export const koGeneratedSourceHashes: Readonly> = { + "objects.sys_http_delivery.fields.status.help": "e437ecf81dfb4715", + "objects.sys_user_device.fields.platform.options.android": "44fa27bdaae7f812", + "objects.sys_user_device.fields.platform.options.ios": "461f32943613be91", + "objects.sys_user_device.fields.vendor.options.apns": "b6edcf327f308698", + "objects.sys_user_device.fields.vendor.options.fcm": "fc3b030ffd243df4", +}; diff --git a/packages/services/service-messaging/src/translations/messages.ts b/packages/services/service-messaging/src/translations/messages.ts index ee8bdc0a845..5120db42312 100644 --- a/packages/services/service-messaging/src/translations/messages.ts +++ b/packages/services/service-messaging/src/translations/messages.ts @@ -38,13 +38,14 @@ * Neither `II18nService` implementation selects a plural form: `t()` * interpolates `{{name}}` holes and nothing else. The count is always two or * more, and in most shipped locales every count from two up takes ONE form - * (en, es-ES, fr, pt-BR: the plural; zh-CN, zh-Hant, ja-JP: no plural - * inflection). Arabic does vary above two (3–10 vs 11+), so its sentence is - * worded count-neutrally — the number stands after a colon as a tally - * (`عدد الإشعارات لديك: {{count}}`), which reads correctly for every count - * without choosing a noun form (#30512). A sentence that cannot be phrased - * that way needs plural selection in the catalog, which is the `i18n` - * service's to add, not this bundle's. + * (en, es-ES, fr, pt-BR, de: the plural; zh-CN, zh-Hant, ja-JP, ko: no plural + * inflection). Russian and Arabic do vary above two (ru: 2–4 vs 5+; ar: 3–10 + * vs 11+), so their sentences are worded count-neutrally — the number stands + * after a colon as a tally (`Уведомлений: {{count}}`, `عدد الإشعارات لديك: + * {{count}}`), which reads correctly for every count without choosing a noun + * form (#30512). A sentence that cannot be phrased that way needs plural + * selection in the catalog, which is the `i18n` service's to add, not this + * bundle's. */ import type { TranslationData } from '@objectstack/spec/system'; @@ -89,10 +90,22 @@ export const ptBRMessages: MessagingMessages = { notificationDigestTitle: 'Você tem {{count}} notificações', }; +export const ruMessages: MessagingMessages = { + notificationDigestTitle: 'Уведомлений: {{count}}', +}; + +export const deMessages: MessagingMessages = { + notificationDigestTitle: 'Sie haben {{count}} Benachrichtigungen', +}; + +export const koMessages: MessagingMessages = { + notificationDigestTitle: '알림이 {{count}}개 있습니다', +}; + /** The shipped locales, keyed as the bundle beside this file keys them. */ export type MessagingLocale = | 'en' | 'zh-CN' | 'ja-JP' | 'es-ES' - | 'zh-Hant' | 'ar' | 'fr' | 'pt-BR'; + | 'zh-Hant' | 'ar' | 'fr' | 'pt-BR' | 'ru' | 'de' | 'ko'; export const messagingMessages: Readonly> = { en: enMessages, @@ -103,4 +116,7 @@ export const messagingMessages: Readonly = { + sys_inbox_message: { + label: "Сообщение во входящих", + pluralLabel: "Сообщения во входящих", + description: "Строки внутренних уведомлений для пользователей, материализуемые каналом входящих сообщений.", + fields: { + id: { + label: "ID сообщения" + }, + user_id: { + label: "Пользователь-получатель" + }, + notification_id: { + label: "Событие уведомления", + help: "Внешний ключ → sys_notification (событие L2, которое материализует эта строка)" + }, + delivery_id: { + label: "Доставка", + help: "Внешний ключ → sys_notification_delivery (строка исходящей очереди); null до P1" + }, + actor_id: { + label: "Исполнитель", + help: "Пользователь, вызвавший событие (упомянувший, назначивший), — та же семантика, что у sys_notification.actor_id. Позволяет клиенту скрывать собственные квитанции простым локальным сравнением. В строке дайджеста по построению null: у свёрнутой группы нет единственного исполнителя." + }, + topic: { + label: "Тема" + }, + title: { + label: "Заголовок" + }, + body_md: { + label: "Текст" + }, + severity: { + label: "Важность", + options: { + info: "Информация", + warning: "Предупреждение", + critical: "Критично" + } + }, + action_url: { + label: "URL действия" + }, + created_at: { + label: "Создано" + } + }, + _views: { + mine: { + label: "Уведомления", + emptyState: { + title: "Входящие пусты", + message: "Уведомлений нет." + } + } + } + }, + sys_notification_receipt: { + label: "Квитанция уведомления", + pluralLabel: "Квитанции уведомлений", + description: "Квитанция по получателю × каналу; единственный достоверный источник состояния прочтения уведомлений.", + fields: { + id: { + label: "ID квитанции" + }, + notification_id: { + label: "Событие уведомления", + help: "Внешний ключ → sys_notification (событие L2)" + }, + delivery_id: { + label: "Доставка", + help: "Внешний ключ → sys_notification_delivery (строка исходящей очереди); null до P1" + }, + user_id: { + label: "Пользователь-получатель" + }, + channel: { + label: "Канал", + help: "ID канала, к которому относится квитанция (inbox / email / push / …)" + }, + state: { + label: "Состояние", + options: { + delivered: "доставлено", + read: "прочитано", + clicked: "нажато", + dismissed: "скрыто" + } + }, + at: { + label: "Время", + help: "Когда квитанция перешла в текущее состояние" + }, + created_at: { + label: "Создано" + } + } + }, + sys_notification_delivery: { + label: "Доставка уведомления", + pluralLabel: "Доставки уведомлений", + description: "Надёжная исходящая очередь доставок по получателю × каналу.", + fields: { + id: { + label: "ID доставки" + }, + display_title: { + label: "Заголовок", + help: "Заголовок записи: канал доставки и адресат либо адрес, если получатель не пользователь (вычисляется при чтении)" + }, + notification_id: { + label: "Событие уведомления", + help: "Внешний ключ → sys_notification (событие L2)" + }, + recipient_id: { + label: "Получатель", + help: "Адрес, на который отправляется доставка: ID пользователя либо адрес электронной почты или номер телефона в исходном виде." + }, + recipient_user_id: { + label: "Пользователь-получатель", + help: "Пользователь, которому предназначена доставка. Пусто, если получатель — адрес почты или номер телефона, не принадлежащий ни одному пользователю." + }, + channel: { + label: "Канал" + }, + topic: { + label: "Тема" + }, + digest_key: { + label: "Ключ дайджеста", + help: "Ключ группировки recipient|channel|window для пакетных доставок (дайджест); null для обычных отправок." + }, + payload: { + label: "Полезная нагрузка", + help: "Снимок отрисованного содержимого уведомления для отправки." + }, + status: { + label: "Статус", + options: { + pending: "ожидает", + in_flight: "отправляется", + success: "успешно", + failed: "ошибка", + dead: "недоставляемое", + suppressed: "подавлено" + } + }, + attempts: { + label: "Попытки" + }, + partition_key: { + label: "Ключ раздела" + }, + claimed_by: { + label: "Захвачено узлом", + help: "ID узла в состоянии in_flight" + }, + claimed_at: { + label: "Время захвата (мс)" + }, + next_attempt_at: { + label: "Следующая попытка (мс)" + }, + last_attempted_at: { + label: "Последняя попытка (мс)" + }, + error: { + label: "Ошибка" + }, + created_at: { + label: "Создано" + }, + updated_at: { + label: "Обновлено" + } + } + }, + sys_notification_preference: { + label: "Настройка уведомлений", + pluralLabel: "Настройки уведомлений", + description: "Какие темы и каналы получает каждый пользователь; значения по умолчанию задают администраторы.", + fields: { + id: { + label: "ID настройки" + }, + display_title: { + label: "Заголовок", + help: "Заголовок записи: человек (или All users), тема и канал, к которым относится этот переключатель (вычисляется при чтении)" + }, + user_id: { + label: "Пользователь", + help: "Пользователь, к которому относится настройка. Оставьте пустым для значения по умолчанию для всех пользователей." + }, + topic: { + label: "Тема", + help: "Тема, под которой отправляются уведомления: тема, указанная в шаге уведомления потока, или тема, которую отправляет платформа, например approval.requested или collab.mention. Введите * для всех тем. Тема, по которой ничего не отправляется, ничему не соответствует." + }, + channel: { + label: "Канал", + help: "Канал: inbox (уведомления внутри приложения, доступен всегда), email (после настройки почтовой службы), sms (после настройки SMS-службы) или ID канала, добавленного установленным плагином. Введите * для всех каналов. ID, который не использует ни один канал, ничему не соответствует." + }, + enabled: { + label: "Включено", + help: "При значении false эта комбинация (пользователь, тема, канал) отключена." + }, + digest: { + label: "Дайджест", + help: "Собирать эти уведомления в один дайджест вместо отправки каждого по мере поступления: daily отправляет в полночь, weekly — в понедельник в полночь, none отправляет каждое сразу. Критичные уведомления всегда отправляются сразу. Действует для настройки с каналом * (все каналы).", + options: { + none: "без дайджеста", + daily: "ежедневно", + weekly: "еженедельно" + } + }, + quiet_hours: { + label: "Тихие часы", + help: "Ежедневный интервал, в течение которого уведомления задерживаются и доставляются по его окончании, например { \"tz\": \"Europe/Berlin\", \"start\": \"22:00\", \"end\": \"07:00\" }. Время в формате HH:MM в этом часовом поясе (UTC, если tz не указан); интервал может переходить через полночь. Критичные уведомления не задерживаются. Действует для настройки с каналом * (все каналы)." + }, + created_at: { + label: "Создано" + }, + updated_at: { + label: "Обновлено" + } + }, + _views: { + all: { + label: "Все", + emptyState: { + title: "Настроек пока нет", + message: "Пока настройка не добавлена, ничего не отключено; добавьте её, чтобы отключить или разрешить тему в канале для одного пользователя или по умолчанию для всех." + } + } + } + }, + sys_notification_template: { + label: "Шаблон уведомления", + pluralLabel: "Шаблоны уведомлений", + description: "Текст писем и SMS, который отправляет каждая тема уведомлений, по языкам. Входящие в приложении никогда не используют эти шаблоны.", + fields: { + id: { + label: "ID шаблона" + }, + topic: { + label: "Тема" + }, + channel: { + label: "Канал", + help: "Канал, использующий этот шаблон: email или sms; любое другое значение отклоняется. Входящие в приложении его не используют; для содержимого в приложении создайте шаблон письма и укажите его в template шага уведомления." + }, + locale: { + label: "Язык", + help: "Код языка BCP-47, например 'en' / 'en-US' / 'zh-CN'." + }, + version: { + label: "Версия" + }, + subject: { + label: "Тема / Заголовок", + help: "Тема письма; SMS отправляет её, только если текст пуст. Поддерживает {{ payload.x }}." + }, + body: { + label: "Текст", + help: "Текст шаблона. Поддерживает {{ payload.x }}. Интерпретируется по `format`." + }, + format: { + label: "Формат текста", + options: { + markdown: "Markdown", + html: "HTML", + text: "обычный текст", + mjml: "MJML" + } + }, + is_active: { + label: "Активен", + help: "При отрисовке выбираются только активные шаблоны." + }, + created_at: { + label: "Создано" + }, + updated_at: { + label: "Обновлено" + } + }, + _views: { + all: { + label: "Все", + emptyState: { + title: "Шаблонов пока нет", + message: "Добавьте шаблон для каждой темы, канала (email или SMS) и языка; до тех пор эти каналы отправляют заголовок и текст из самого уведомления. Содержимое в приложении берётся из шаблона письма: уведомление, указывающее шаблон, отправляет его по почте и во входящие, а SMS по-прежнему использует шаблон отсюда." + } + } + }, + _validations: { + channel_renders_template: { + message: "Шаблон уведомления используют только каналы email и sms, поэтому шаблон для любого другого канала отклоняется: задайте channel равным email или sms либо удалите шаблон. Для содержимого в приложении (входящие) создайте шаблон письма (email_template) и укажите его в template шага уведомления; его отрисовывают и почта, и входящие." + } + } + }, + sys_http_delivery: { + label: "HTTP-доставка", + pluralLabel: "HTTP-доставки", + description: "Исходящие HTTP-вызовы веб-хуков и потоков: одна строка на вызов, со статусом доставки.", + fields: { + id: { + label: "ID доставки", + help: "UUID — также служит ключом идемпотентности на стороне получателя" + }, + display_title: { + label: "Заголовок", + help: "Заголовок записи: метка доставки, если задана, и её целевой URL (вычисляется при чтении)" + }, + source: { + label: "Источник", + help: "Домен происхождения, например 'webhook' | 'flow'. UNIQUE(source, dedup_key)." + }, + ref_id: { + label: "ID ссылки", + help: "Якорь раздела/порядка внутри источника (ID веб-хука, ID потока, …)" + }, + dedup_key: { + label: "Ключ дедупликации", + help: "UNIQUE(source, dedup_key) для постановки в очередь не более одного раза" + }, + label: { + label: "Метка", + help: "Диагностическая метка / тип события — передаётся в X-Objectstack-Event" + }, + url: { + label: "Целевой URL", + help: "Фиксируется при постановке в очередь, чтобы правки конфигурации не переписывали живые строки" + }, + method: { + label: "Метод" + }, + headers_json: { + label: "Заголовки JSON", + help: "Заданные заголовки запроса для этой доставки — обычное место для учётных данных, поэтому они никогда не возвращаются по общему пути данных. Диспетчер получает их через привилегированный метод доступа движка при захвате." + }, + signature: { + label: "Подпись HMAC", + help: "X-Objectstack-Signature, отправленная с этой доставкой (sha256=). Вычисляется при постановке в очередь; секрет подписи никогда не сохраняется." + }, + timeout_ms: { + label: "Тайм-аут (мс)" + }, + payload_json: { + label: "Полезная нагрузка JSON" + }, + partition_key: { + label: "Раздел", + help: "hash(ref_id) mod partitionCount — вычисляется заранее для дешёвого WHERE" + }, + status: { + label: "Статус", + help: "pending | in_flight | success | failed | dead" + }, + attempts: { + label: "Попытки", + help: "Число попыток на данный момент. 0 в конечной строке означает, что доставка PARKED — не отправлялась и не может быть доставлена повторно, так как у неё нет подписи; причина — в `error`." + }, + claimed_by: { + label: "Захвачено узлом" + }, + claimed_at: { + label: "Время захвата (мс)" + }, + next_retry_at: { + label: "Следующий повтор (мс)" + }, + last_attempted_at: { + label: "Последняя попытка (мс)" + }, + response_code: { + label: "HTTP-статус" + }, + response_body: { + label: "Тело ответа (усечено)" + }, + error: { + label: "Ошибка", + help: "Почему эта строка не является доставленным вызовом: последняя транспортная ошибка или — для строки с 0 попыток — почему доставку так и не удалось подготовить." + }, + created_at: { + label: "Создано" + }, + updated_at: { + label: "Обновлено" + } + }, + _views: { + recent: { + label: "Недавние" + }, + failures: { + label: "Сбои" + }, + pending: { + label: "Ожидающие" + } + } + }, + sys_user_device: { + label: "Устройство пользователя", + pluralLabel: "Устройства пользователей", + description: "Push-устройство пользователя: одна строка на установку приложения, с push-токеном поставщика.", + fields: { + id: { + label: "ID строки" + }, + device_id: { + label: "ID устройства", + help: "ID устройства на стороне клиента, постоянный для каждой установки приложения. Уникален в пределах пользователя." + }, + user_id: { + label: "Пользователь", + help: "Пользователь, которому принадлежит устройство: вошедший пользователь, который его зарегистрировал." + }, + vendor: { + label: "Поставщик", + help: "Поставщик push-уведомлений, которому принадлежит токен.", + options: { + apns: "APNs", + fcm: "FCM" + } + }, + token: { + label: "Push-токен", + help: "Push-токен поставщика. Принадлежит одновременно только одному устройству." + }, + platform: { + label: "Платформа", + options: { + ios: "iOS", + android: "Android", + web: "Веб" + } + }, + app_id: { + label: "ID приложения", + help: "Bundle ID iOS или ID приложения Android, для которого выдан токен." + }, + locale: { + label: "Языковой стандарт", + help: "Языковой стандарт устройства, указанный при регистрации. Хранится для устройства; ни одно push-уведомление не отображается по нему: push-уведомление приходит на языке получателя (его языке пользователя, затем на языке развёртывания по умолчанию)." + }, + name: { + label: "Имя устройства" + }, + enabled: { + label: "Включено", + help: "False, как только поставщик сообщил, что токен недействителен; на отключённое устройство ничего не доставляется." + }, + invalidated_at: { + label: "Аннулировано", + help: "Когда поставщик сообщил, что токен недействителен. Сбрасывается регистрацией, которая снова включает устройство." + }, + last_seen_at: { + label: "Последняя активность", + help: "Когда устройство последний раз регистрировалось или обновлялось." + }, + created_at: { + label: "Создано" + } + } + } +}; diff --git a/packages/services/service-messaging/src/translations/ru.source-hashes.generated.ts b/packages/services/service-messaging/src/translations/ru.source-hashes.generated.ts new file mode 100644 index 00000000000..b8443d8211c --- /dev/null +++ b/packages/services/service-messaging/src/translations/ru.source-hashes.generated.ts @@ -0,0 +1,26 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'ru'. Do not hand-edit. + * + * Each entry is the digest of the SOURCE REVISION that this locale's leaf at + * that path is still a byte copy of — provenance for the generated half of the + * bundles (commit 09b4f4e4e): a leaf whose digest no longer matches its source is stale and serves the source text instead. + * + * An entry exists only while the leaf IS such a copy. Re-translate the leaf in + * `.objects.generated.ts` and the next extract drops its entry by + * itself — the table makes no claim about text a translator wrote. A path with + * no entry is LEGACY-TRUSTED and never reported stale. + * + * ⚠️ Do not "fix" a staleness report by editing this file. Refreshing a digest + * records that the current text was copied from the current source, which is + * the false claim the mechanism exists to detect. Fix the TRANSLATION. + */ + +export const ruGeneratedSourceHashes: Readonly> = { + "objects.sys_http_delivery.fields.status.help": "e437ecf81dfb4715", + "objects.sys_user_device.fields.platform.options.android": "44fa27bdaae7f812", + "objects.sys_user_device.fields.platform.options.ios": "461f32943613be91", + "objects.sys_user_device.fields.vendor.options.apns": "b6edcf327f308698", + "objects.sys_user_device.fields.vendor.options.fcm": "fc3b030ffd243df4", +};