From c6c30383fb3a9e8c94ccd7277844cebea1cc9c1f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 16:22:30 +0000 Subject: [PATCH] i18n(plugin-webhooks): ship sys_webhook in zh-Hant, ar, fr, pt-BR, ru, de and ko Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01Utp6Cai5CRdAs4u9gTipWU --- .changeset/30512-plugin-webhooks-locales.md | 10 ++ .../scripts/i18n-extract.config.ts | 16 ++- .../src/translations/ar.objects.generated.ts | 117 ++++++++++++++++++ .../ar.source-hashes.generated.ts | 26 ++++ .../src/translations/bundle-ownership.test.ts | 2 +- .../src/translations/de.objects.generated.ts | 117 ++++++++++++++++++ .../de.source-hashes.generated.ts | 30 +++++ .../src/translations/fr.objects.generated.ts | 117 ++++++++++++++++++ .../fr.source-hashes.generated.ts | 30 +++++ .../plugin-webhooks/src/translations/index.ts | 21 ++++ .../src/translations/ko.objects.generated.ts | 117 ++++++++++++++++++ .../ko.source-hashes.generated.ts | 26 ++++ .../translations/pt-BR.objects.generated.ts | 117 ++++++++++++++++++ .../pt-BR.source-hashes.generated.ts | 28 +++++ .../src/translations/ru.objects.generated.ts | 117 ++++++++++++++++++ .../ru.source-hashes.generated.ts | 26 ++++ .../translations/zh-Hant.objects.generated.ts | 117 ++++++++++++++++++ .../zh-Hant.source-hashes.generated.ts | 28 +++++ scripts/i18n-stale-fill-baseline.json | 4 +- 19 files changed, 1063 insertions(+), 3 deletions(-) create mode 100644 .changeset/30512-plugin-webhooks-locales.md create mode 100644 packages/plugins/plugin-webhooks/src/translations/ar.objects.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/ar.source-hashes.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/de.objects.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/de.source-hashes.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/fr.objects.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/fr.source-hashes.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/ko.objects.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/ko.source-hashes.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/pt-BR.objects.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/pt-BR.source-hashes.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/ru.objects.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/ru.source-hashes.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/zh-Hant.objects.generated.ts create mode 100644 packages/plugins/plugin-webhooks/src/translations/zh-Hant.source-hashes.generated.ts diff --git a/.changeset/30512-plugin-webhooks-locales.md b/.changeset/30512-plugin-webhooks-locales.md new file mode 100644 index 00000000000..c6f58498f01 --- /dev/null +++ b/.changeset/30512-plugin-webhooks-locales.md @@ -0,0 +1,10 @@ +--- +'@objectstack/plugin-webhooks': patch +--- + +i18n(plugin-webhooks): the webhook object's labels, help, options and views ship in all eleven platform languages + +Clause-②: no +Metadata-protocol: none + +`sys_webhook` now carries Traditional Chinese (`zh-Hant`), Arabic (`ar`), French (`fr`), Brazilian Portuguese (`pt-BR`), Russian (`ru`), German (`de`) and Korean (`ko`) beside the existing `en`, `zh-CN`, `ja-JP` and `es-ES`, so an administrator reading Setup in one of those languages sees the webhook screens in their own language instead of English. Each new locale is registered under its platform-table tag with its source-hash companion, and the package's extract command lists the seven tags, so the existing `check:i18n` bundle check covers them. Part of #30512. diff --git a/packages/plugins/plugin-webhooks/scripts/i18n-extract.config.ts b/packages/plugins/plugin-webhooks/scripts/i18n-extract.config.ts index 786d18e2039..73d9b17c1db 100644 --- a/packages/plugins/plugin-webhooks/scripts/i18n-extract.config.ts +++ b/packages/plugins/plugin-webhooks/scripts/i18n-extract.config.ts @@ -8,7 +8,7 @@ * strings were seeded from @objectstack/platform-objects.) * * os i18n extract packages/plugins/plugin-webhooks/scripts/i18n-extract.config.ts \ - * --locales=zh-CN,ja-JP,es-ES --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/plugins/plugin-webhooks/src/translations * @@ -45,6 +45,13 @@ import { enObjects } from '../src/translations/en.objects.generated.js'; import { zhCNObjects } from '../src/translations/zh-CN.objects.generated.js'; import { jaJPObjects } from '../src/translations/ja-JP.objects.generated.js'; import { esESObjects } from '../src/translations/es-ES.objects.generated.js'; +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` @@ -67,6 +74,13 @@ const config: ObjectStackDefinition = defineStack({ { 'zh-CN': { objects: zhCNObjects } }, { 'ja-JP': { objects: jaJPObjects } }, { 'es-ES': { objects: esESObjects } }, + { 'zh-Hant': { objects: zhHantObjects } }, + { 'ar': { objects: arObjects } }, + { 'fr': { objects: frObjects } }, + { 'pt-BR': { objects: ptBRObjects } }, + { 'ru': { objects: ruObjects } }, + { 'de': { objects: deObjects } }, + { 'ko': { objects: koObjects } }, ], }); diff --git a/packages/plugins/plugin-webhooks/src/translations/ar.objects.generated.ts b/packages/plugins/plugin-webhooks/src/translations/ar.objects.generated.ts new file mode 100644 index 00000000000..323678517fe --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/ar.objects.generated.ts @@ -0,0 +1,117 @@ +// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'ar'. + * 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 arObjects: NonNullable = { + sys_webhook: { + label: "خطاف ويب", + pluralLabel: "خطافات الويب", + description: "خطاف ويب HTTP صادر تُنشئه مؤسستك هنا أو عبر واجهة API. لا تُدرج هنا خطافات الويب المضمّنة في التطبيقات. يُرسَل النوعان عبر قائمة انتظار التسليم نفسها.", + fields: { + id: { + label: "معرّف خطاف الويب" + }, + name: { + label: "الاسم", + help: "اسم بصيغة snake_case، فريد داخل كل مؤسسة — يُشار إليه في السجلات والتدقيق" + }, + label: { + label: "التسمية المعروضة" + }, + object_name: { + label: "الكائن", + help: "الاسم المختصر للكائن الذي تُطلق أحداث سجلاته (create/update/delete) خطاف الويب هذا" + }, + triggers: { + label: "المشغّلات", + help: "أحداث السجلات التي تُطلق خطاف الويب هذا (تُرسل أحداث bulk_* عددًا لا سجلًا)", + options: { + create: "إنشاء", + update: "تحديث", + delete: "حذف", + bulk_update: "تحديث جماعي", + bulk_delete: "حذف جماعي" + } + }, + url: { + label: "عنوان URL الهدف", + help: "نقطة النهاية الخارجية التي تستقبل طلب POST" + }, + method: { + label: "أسلوب HTTP", + help: "أسلوب HTTP المستخدم في طلب الاستدعاء", + options: { + get: "GET", + post: "POST", + put: "PUT", + patch: "PATCH", + delete: "DELETE" + } + }, + description: { + label: "الوصف" + }, + active: { + label: "نشط", + help: "يتخطّى المُرسِل خطافات الويب غير النشطة" + }, + definition_json: { + label: "التعريف", + help: "تمثيل JSON متسلسل لخطاف الويب (راجع @objectstack/spec/automation/webhook) — المهلة وبقية الغلاف المُعَدّ. لا تُخزَّن بيانات الاعتماد هنا: يوجد سر التوقيع في الحقل المشفّر `signing_secret`، والترويسات المخصّصة في الحقل المشفّر `headers_secret`." + }, + headers_secret: { + label: "الترويسات المخصّصة", + help: "ترويسات HTTP مخصّصة تُرسَل مع كل تسليم، على هيئة كائن JSON ({\"Authorization\": \"Bearer …\"}). تُشفَّر عند التخزين في sys_secret؛ وتُعيد القراءة قناعًا ولا تُعيد الترويسات أبدًا. اترك القناع كما هو للإبقاء على القيمة الحالية." + }, + signing_secret: { + label: "سر التوقيع", + help: "مفتاح HMAC-SHA256 المستخدم لتوقيع عمليات التسليم (X-Objectstack-Signature). يُشفَّر عند التخزين في sys_secret؛ وتُعيد القراءة قناعًا ولا تُعيد المفتاح أبدًا. اترك القناع كما هو للإبقاء على القيمة الحالية." + }, + managed_by: { + label: "جهة الإدارة", + help: "مصدر السجل: admin = أُنشئ في Setup أو عبر واجهة API / package = نسخة من خطاف ويب مُعرَّف في الشيفرة كتبها مُهيّئ الإقلاع المتقاعد في الإصدار 18.0 (لا شيء يكتب مثلها الآن: يُقرأ خطاف الويب المُعرَّف من سجلّ البيانات الوصفية وليس صفًّا) / platform = محجوز.", + options: { + platform: "المنصّة", + package: "الحزمة", + admin: "المسؤول" + } + }, + customized: { + label: "مخصّص", + help: "يُضبط عندما يحرّر مسؤول صفًّا من نوع package (نسخة كتبها مُهيّئ الإقلاع المتقاعد في الإصدار 18.0). تقرؤه عملية نقل الملكية: النسخة المحرَّرة تحت اسم مُعرَّف تُحفظ كنسخة مستنسخة، والنسخة غير المعدَّلة تُحذف. لا معنى له في صفوف admin." + }, + created_at: { + label: "تاريخ الإنشاء" + }, + updated_at: { + label: "تاريخ التحديث" + } + }, + _views: { + active: { + label: "النشطة" + }, + inactive: { + label: "غير النشطة" + }, + by_object: { + label: "حسب الكائن" + }, + all_webhooks: { + label: "الكل" + } + } + } +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/ar.source-hashes.generated.ts b/packages/plugins/plugin-webhooks/src/translations/ar.source-hashes.generated.ts new file mode 100644 index 00000000000..18f5e8200f0 --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/ar.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 'ar'. 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 arGeneratedSourceHashes: Readonly> = { + "objects.sys_webhook.fields.method.options.delete": "f59e059ed51f9bfc", + "objects.sys_webhook.fields.method.options.get": "470848255971c548", + "objects.sys_webhook.fields.method.options.patch": "7de3603749decb30", + "objects.sys_webhook.fields.method.options.post": "004b24eab36d26a4", + "objects.sys_webhook.fields.method.options.put": "04d929ecae7aa435", +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/bundle-ownership.test.ts b/packages/plugins/plugin-webhooks/src/translations/bundle-ownership.test.ts index d5e266631bf..04f066eea14 100644 --- a/packages/plugins/plugin-webhooks/src/translations/bundle-ownership.test.ts +++ b/packages/plugins/plugin-webhooks/src/translations/bundle-ownership.test.ts @@ -27,7 +27,7 @@ describe('objects translation bundle ownership (ADR-0029 D8)', () => { strays, `bundle carries objects this package's extract config does not own: ${strays.join(', ')} — ` + 'their curated translations would be silently deleted on the next `os i18n extract`. ' + - 'Remove the dead block from the four locale bundles, or add the object to the extract config + this list.', + 'Remove the dead block from every locale bundle, or add the object to the extract config + this list.', ).toEqual([]); }); diff --git a/packages/plugins/plugin-webhooks/src/translations/de.objects.generated.ts b/packages/plugins/plugin-webhooks/src/translations/de.objects.generated.ts new file mode 100644 index 00000000000..12100e69d44 --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/de.objects.generated.ts @@ -0,0 +1,117 @@ +// 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_webhook: { + label: "Webhook", + pluralLabel: "Webhooks", + description: "Ein ausgehender HTTP-Webhook, den Ihre Organisation hier oder über die API anlegt. In eine App integrierte Webhooks werden hier nicht aufgeführt. Beide Arten werden über dieselbe Zustellwarteschlange gesendet.", + fields: { + id: { + label: "Webhook-ID" + }, + name: { + label: "Name", + help: "Name in snake_case, je Organisation eindeutig — wird in Protokollen und im Audit referenziert" + }, + label: { + label: "Anzeigebezeichnung" + }, + object_name: { + label: "Objekt", + help: "Kurzname des Objekts, dessen Datensatzereignisse (create/update/delete) diesen Webhook auslösen" + }, + triggers: { + label: "Auslöser", + help: "Datensatzereignisse, die diesen Webhook auslösen (bulk_* liefern eine Anzahl, keinen Datensatz)", + options: { + create: "Erstellen", + update: "Aktualisieren", + delete: "Löschen", + bulk_update: "Massenaktualisierung", + bulk_delete: "Massenlöschung" + } + }, + url: { + label: "Ziel-URL", + help: "Externer Endpunkt, der den POST empfängt" + }, + method: { + label: "HTTP-Methode", + help: "HTTP-Methode für die Callback-Anfrage", + options: { + get: "GET", + post: "POST", + put: "PUT", + patch: "PATCH", + delete: "DELETE" + } + }, + description: { + label: "Beschreibung" + }, + active: { + label: "Aktiv", + help: "Inaktive Webhooks überspringt der Dispatcher" + }, + definition_json: { + label: "Definition", + help: "Serialisiertes Webhook-JSON (siehe @objectstack/spec/automation/webhook) — Zeitlimit und der Rest des verfassten Umschlags. Zugangsdaten werden hier NICHT gespeichert: Das Signaturgeheimnis liegt im verschlüsselten Feld `signing_secret`, die benutzerdefinierten Header im verschlüsselten Feld `headers_secret`." + }, + headers_secret: { + label: "Benutzerdefinierte Header", + help: "Benutzerdefinierte HTTP-Header, die mit jeder Zustellung gesendet werden, als JSON-Objekt ({\"Authorization\": \"Bearer …\"}). Im Ruhezustand verschlüsselt in sys_secret gespeichert; Lesezugriffe liefern eine Maske, nie die Header. Lassen Sie die Maske unverändert, um den aktuellen Wert zu behalten." + }, + signing_secret: { + label: "Signaturgeheimnis", + help: "HMAC-SHA256-Schlüssel zum Signieren der Zustellungen (X-Objectstack-Signature). Im Ruhezustand verschlüsselt in sys_secret gespeichert; Lesezugriffe liefern eine Maske, nie den Schlüssel. Lassen Sie die Maske unverändert, um den aktuellen Wert zu behalten." + }, + managed_by: { + label: "Verwaltet von", + help: "Herkunft des Datensatzes: admin = in Setup oder über die API angelegt / package = Kopie eines im Code deklarierten Webhooks, die der eingestellte Boot-Seeder von 18.0 geschrieben hat (heute schreibt nichts mehr eine: ein deklarierter Webhook wird aus der Metadaten-Registry gelesen und ist keine Zeile) / platform = reserviert.", + options: { + platform: "Plattform", + package: "Paket", + admin: "Administrator" + } + }, + customized: { + label: "Angepasst", + help: "Wird gesetzt, wenn ein Administrator eine package-Zeile bearbeitet (eine Kopie, die der eingestellte Boot-Seeder von 18.0 geschrieben hat). Das Eigentumsverfahren liest es: Eine bearbeitete Kopie unter einem deklarierten Namen bleibt als Klon erhalten, eine unveränderte wird gelöscht. Bei admin-Zeilen bedeutungslos." + }, + created_at: { + label: "Erstellt am" + }, + updated_at: { + label: "Aktualisiert am" + } + }, + _views: { + active: { + label: "Aktiv" + }, + inactive: { + label: "Inaktiv" + }, + by_object: { + label: "Nach Objekt" + }, + all_webhooks: { + label: "Alle" + } + } + } +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/de.source-hashes.generated.ts b/packages/plugins/plugin-webhooks/src/translations/de.source-hashes.generated.ts new file mode 100644 index 00000000000..ae7cf503c7e --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/de.source-hashes.generated.ts @@ -0,0 +1,30 @@ +// 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_webhook.fields.definition_json.label": "efa6ad859212b898", + "objects.sys_webhook.fields.method.options.delete": "f59e059ed51f9bfc", + "objects.sys_webhook.fields.method.options.get": "470848255971c548", + "objects.sys_webhook.fields.method.options.patch": "7de3603749decb30", + "objects.sys_webhook.fields.method.options.post": "004b24eab36d26a4", + "objects.sys_webhook.fields.method.options.put": "04d929ecae7aa435", + "objects.sys_webhook.fields.name.label": "5274417ff1ccaf01", + "objects.sys_webhook.label": "b608f1636b7e8184", + "objects.sys_webhook.pluralLabel": "8fdd81bc76459a6a", +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/fr.objects.generated.ts b/packages/plugins/plugin-webhooks/src/translations/fr.objects.generated.ts new file mode 100644 index 00000000000..6202538b5a2 --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/fr.objects.generated.ts @@ -0,0 +1,117 @@ +// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'fr'. + * 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 frObjects: NonNullable = { + sys_webhook: { + label: "Webhook", + pluralLabel: "Webhooks", + description: "Un webhook HTTP sortant que votre organisation crée ici ou via l’API. Les webhooks intégrés à une application ne sont pas listés ici. Les deux types passent par la même file de livraison.", + fields: { + id: { + label: "ID du webhook" + }, + name: { + label: "Nom", + help: "Nom en snake_case, unique par organisation — cité dans les journaux et l’audit" + }, + label: { + label: "Libellé affiché" + }, + object_name: { + label: "Objet", + help: "Nom court de l’objet dont les événements d’enregistrement (create/update/delete) déclenchent ce webhook" + }, + triggers: { + label: "Déclencheurs", + help: "Événements d’enregistrement qui déclenchent ce webhook (les bulk_* livrent un nombre, pas un enregistrement)", + options: { + create: "création", + update: "mise à jour", + delete: "suppression", + bulk_update: "mise à jour groupée", + bulk_delete: "suppression groupée" + } + }, + url: { + label: "URL cible", + help: "Point de terminaison externe qui reçoit le POST" + }, + method: { + label: "Méthode HTTP", + help: "Méthode HTTP utilisée pour la requête de rappel", + options: { + get: "GET", + post: "POST", + put: "PUT", + patch: "PATCH", + delete: "DELETE" + } + }, + description: { + label: "Description" + }, + active: { + label: "Actif", + help: "Les webhooks inactifs sont ignorés par le répartiteur" + }, + definition_json: { + label: "Définition", + help: "JSON sérialisé du webhook (voir @objectstack/spec/automation/webhook) — le délai d’expiration et le reste de l’enveloppe rédigée. Les identifiants ne sont PAS stockés ici : le secret de signature se trouve dans le champ chiffré `signing_secret` et les en-têtes personnalisés dans le champ chiffré `headers_secret`." + }, + headers_secret: { + label: "En-têtes personnalisés", + help: "En-têtes HTTP personnalisés envoyés avec chaque livraison, sous forme d’objet JSON ({\"Authorization\": \"Bearer …\"}). Chiffrés au repos dans sys_secret ; une lecture renvoie un masque, jamais les en-têtes. Laissez le masque intact pour conserver la valeur actuelle." + }, + signing_secret: { + label: "Secret de signature", + help: "Clé HMAC-SHA256 utilisée pour signer les livraisons (X-Objectstack-Signature). Chiffrée au repos dans sys_secret ; une lecture renvoie un masque, jamais la clé. Laissez le masque intact pour conserver la valeur actuelle." + }, + managed_by: { + label: "Géré par", + help: "Provenance de l’enregistrement : admin = créé dans Setup ou via l’API / package = copie d’un webhook déclaré dans le code, écrite par l’ancien initialiseur de démarrage de la 18.0, désormais retiré (plus rien n’en écrit : un webhook déclaré est lu dans le registre des métadonnées et n’est pas une ligne) / platform = réservé.", + options: { + platform: "plateforme", + package: "package", + admin: "administrateur" + } + }, + customized: { + label: "Personnalisé", + help: "Positionné quand un administrateur modifie une ligne package (une copie écrite par l’ancien initialiseur de démarrage de la 18.0, désormais retiré). La procédure de propriété le lit : une copie modifiée sous un nom déclaré est conservée comme clone, une copie intacte est supprimée. Sans objet sur les lignes admin." + }, + created_at: { + label: "Créé le" + }, + updated_at: { + label: "Mis à jour le" + } + }, + _views: { + active: { + label: "Actifs" + }, + inactive: { + label: "Inactifs" + }, + by_object: { + label: "Par objet" + }, + all_webhooks: { + label: "Tous" + } + } + } +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/fr.source-hashes.generated.ts b/packages/plugins/plugin-webhooks/src/translations/fr.source-hashes.generated.ts new file mode 100644 index 00000000000..76cfd3ad307 --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/fr.source-hashes.generated.ts @@ -0,0 +1,30 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'fr'. 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 frGeneratedSourceHashes: Readonly> = { + "objects.sys_webhook.fields.description.label": "779a4342c8eb6707", + "objects.sys_webhook.fields.managed_by.options.package": "1c8c6168730324a3", + "objects.sys_webhook.fields.method.options.delete": "f59e059ed51f9bfc", + "objects.sys_webhook.fields.method.options.get": "470848255971c548", + "objects.sys_webhook.fields.method.options.patch": "7de3603749decb30", + "objects.sys_webhook.fields.method.options.post": "004b24eab36d26a4", + "objects.sys_webhook.fields.method.options.put": "04d929ecae7aa435", + "objects.sys_webhook.label": "b608f1636b7e8184", + "objects.sys_webhook.pluralLabel": "8fdd81bc76459a6a", +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/index.ts b/packages/plugins/plugin-webhooks/src/translations/index.ts index 929fa19989e..0ecca377384 100644 --- a/packages/plugins/plugin-webhooks/src/translations/index.ts +++ b/packages/plugins/plugin-webhooks/src/translations/index.ts @@ -15,9 +15,23 @@ import { enObjects } from './en.objects.generated.js'; import { zhCNObjects } from './zh-CN.objects.generated.js'; import { jaJPObjects } from './ja-JP.objects.generated.js'; import { esESObjects } from './es-ES.objects.generated.js'; +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'; +import { zhHantGeneratedSourceHashes } from './zh-Hant.source-hashes.generated.js'; +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'; /** * ## The provenance companions are READ here, not merely recorded @@ -60,4 +74,11 @@ export const WebhooksTranslations: TranslationBundle = { 'zh-CN': withSourceFallback({ objects: zhCNObjects }, enSource, undefined, zhCNGeneratedSourceHashes), 'ja-JP': withSourceFallback({ objects: jaJPObjects }, enSource, undefined, jaJPGeneratedSourceHashes), 'es-ES': withSourceFallback({ objects: esESObjects }, enSource, undefined, esESGeneratedSourceHashes), + 'zh-Hant': withSourceFallback({ objects: zhHantObjects }, enSource, undefined, zhHantGeneratedSourceHashes), + 'ar': withSourceFallback({ objects: arObjects }, enSource, undefined, arGeneratedSourceHashes), + 'fr': withSourceFallback({ objects: frObjects }, enSource, undefined, frGeneratedSourceHashes), + 'pt-BR': withSourceFallback({ objects: ptBRObjects }, enSource, undefined, ptBRGeneratedSourceHashes), + 'ru': withSourceFallback({ objects: ruObjects }, enSource, undefined, ruGeneratedSourceHashes), + 'de': withSourceFallback({ objects: deObjects }, enSource, undefined, deGeneratedSourceHashes), + 'ko': withSourceFallback({ objects: koObjects }, enSource, undefined, koGeneratedSourceHashes), }; diff --git a/packages/plugins/plugin-webhooks/src/translations/ko.objects.generated.ts b/packages/plugins/plugin-webhooks/src/translations/ko.objects.generated.ts new file mode 100644 index 00000000000..731794adb42 --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/ko.objects.generated.ts @@ -0,0 +1,117 @@ +// 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_webhook: { + label: "웹훅", + pluralLabel: "웹훅", + description: "조직이 여기에서 또는 API로 만드는 아웃바운드 HTTP 웹훅입니다. 앱에 내장된 웹훅은 여기에 표시되지 않습니다. 두 종류 모두 같은 전송 대기열을 통해 전송됩니다.", + fields: { + id: { + label: "웹훅 ID" + }, + name: { + label: "이름", + help: "조직별로 고유한 snake_case 이름 — 로그와 감사에서 참조됩니다" + }, + label: { + label: "표시 레이블" + }, + object_name: { + label: "개체", + help: "레코드 이벤트(create/update/delete)가 이 웹훅을 실행하는 개체의 짧은 이름" + }, + triggers: { + label: "트리거", + help: "이 웹훅을 실행하는 레코드 이벤트(bulk_*는 레코드가 아닌 건수를 전송)", + options: { + create: "생성", + update: "수정", + delete: "삭제", + bulk_update: "일괄 수정", + bulk_delete: "일괄 삭제" + } + }, + url: { + label: "대상 URL", + help: "POST를 받는 외부 엔드포인트" + }, + method: { + label: "HTTP 메서드", + help: "콜백 요청에 사용하는 HTTP 메서드", + options: { + get: "GET", + post: "POST", + put: "PUT", + patch: "PATCH", + delete: "DELETE" + } + }, + description: { + label: "설명" + }, + active: { + label: "활성", + help: "비활성 웹훅은 디스패처가 건너뜁니다" + }, + definition_json: { + label: "정의", + help: "직렬화된 웹훅 JSON(@objectstack/spec/automation/webhook 참조) — 시간 제한과 작성된 엔벌로프의 나머지 설정입니다. 자격 증명은 여기에 저장되지 않습니다. 서명 비밀 키는 암호화된 `signing_secret` 필드에, 사용자 지정 헤더는 암호화된 `headers_secret` 필드에 저장됩니다." + }, + headers_secret: { + label: "사용자 지정 헤더", + help: "전송할 때마다 함께 보내는 사용자 지정 HTTP 헤더로, JSON 객체 형식입니다({\"Authorization\": \"Bearer …\"}). 저장 시 sys_secret에 암호화되며, 읽으면 헤더 대신 마스크만 반환됩니다. 현재 값을 유지하려면 마스크를 그대로 두세요." + }, + signing_secret: { + label: "서명 비밀 키", + help: "전송에 서명하는 데 쓰는 HMAC-SHA256 키(X-Objectstack-Signature)입니다. 저장 시 sys_secret에 암호화되며, 읽으면 키 대신 마스크만 반환됩니다. 현재 값을 유지하려면 마스크를 그대로 두세요." + }, + managed_by: { + label: "관리 주체", + help: "레코드 출처: admin = Setup 또는 API로 생성 / package = 사용 중단된 18.0 부팅 시더가 기록한, 코드로 선언된 웹훅의 사본(지금은 아무것도 기록하지 않음: 선언된 웹훅은 메타데이터 레지스트리에서 읽으며 행이 아님) / platform = 예약됨.", + options: { + platform: "플랫폼", + package: "패키지", + admin: "관리자" + } + }, + customized: { + label: "사용자 지정됨", + help: "관리자가 package 행(사용 중단된 18.0 부팅 시더가 기록한 사본)을 편집하면 설정됩니다. 소유권 절차가 이 값을 읽습니다. 선언된 이름 아래 편집된 사본은 복제본으로 유지되고, 변경되지 않은 사본은 삭제됩니다. admin 행에서는 의미가 없습니다." + }, + created_at: { + label: "생성 일시" + }, + updated_at: { + label: "수정 일시" + } + }, + _views: { + active: { + label: "활성" + }, + inactive: { + label: "비활성" + }, + by_object: { + label: "개체별" + }, + all_webhooks: { + label: "전체" + } + } + } +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/ko.source-hashes.generated.ts b/packages/plugins/plugin-webhooks/src/translations/ko.source-hashes.generated.ts new file mode 100644 index 00000000000..26cb2777c36 --- /dev/null +++ b/packages/plugins/plugin-webhooks/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_webhook.fields.method.options.delete": "f59e059ed51f9bfc", + "objects.sys_webhook.fields.method.options.get": "470848255971c548", + "objects.sys_webhook.fields.method.options.patch": "7de3603749decb30", + "objects.sys_webhook.fields.method.options.post": "004b24eab36d26a4", + "objects.sys_webhook.fields.method.options.put": "04d929ecae7aa435", +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/pt-BR.objects.generated.ts b/packages/plugins/plugin-webhooks/src/translations/pt-BR.objects.generated.ts new file mode 100644 index 00000000000..99188430bef --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/pt-BR.objects.generated.ts @@ -0,0 +1,117 @@ +// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'pt-BR'. + * 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 ptBRObjects: NonNullable = { + sys_webhook: { + label: "Webhook", + pluralLabel: "Webhooks", + description: "Um webhook HTTP de saída que sua organização cria aqui ou pela API. Webhooks que já vêm em um app não são listados aqui. Os dois tipos são enviados pela mesma fila de entrega.", + fields: { + id: { + label: "ID do webhook" + }, + name: { + label: "Nome", + help: "Nome em snake_case, único por organização — referenciado nos logs e na auditoria" + }, + label: { + label: "Rótulo de exibição" + }, + object_name: { + label: "Objeto", + help: "Nome curto do objeto cujos eventos de registro (create/update/delete) disparam este webhook" + }, + triggers: { + label: "Gatilhos", + help: "Eventos de registro que disparam este webhook (os bulk_* entregam uma contagem, não um registro)", + options: { + create: "criação", + update: "atualização", + delete: "exclusão", + bulk_update: "atualização em massa", + bulk_delete: "exclusão em massa" + } + }, + url: { + label: "URL de destino", + help: "Endpoint externo que recebe o POST" + }, + method: { + label: "Método HTTP", + help: "Método HTTP usado na requisição de callback", + options: { + get: "GET", + post: "POST", + put: "PUT", + patch: "PATCH", + delete: "DELETE" + } + }, + description: { + label: "Descrição" + }, + active: { + label: "Ativo", + help: "Webhooks inativos são ignorados pelo despachante" + }, + definition_json: { + label: "Definição", + help: "JSON serializado do webhook (veja @objectstack/spec/automation/webhook) — o tempo limite e o restante do envelope configurado. As credenciais NÃO ficam aqui: o segredo de assinatura fica no campo criptografado `signing_secret` e os cabeçalhos personalizados no campo criptografado `headers_secret`." + }, + headers_secret: { + label: "Cabeçalhos personalizados", + help: "Cabeçalhos HTTP personalizados enviados em cada entrega, como objeto JSON ({\"Authorization\": \"Bearer …\"}). Criptografados em repouso em sys_secret; a leitura retorna uma máscara, nunca os cabeçalhos. Deixe a máscara como está para manter o valor atual." + }, + signing_secret: { + label: "Segredo de assinatura", + help: "Chave HMAC-SHA256 usada para assinar as entregas (X-Objectstack-Signature). Criptografada em repouso em sys_secret; a leitura retorna uma máscara, nunca a chave. Deixe a máscara como está para manter o valor atual." + }, + managed_by: { + label: "Gerenciado por", + help: "Origem do registro: admin = criado no Setup ou pela API / package = cópia de um webhook declarado em código, gravada pelo semeador de inicialização da 18.0, já aposentado (nada grava uma agora: um webhook declarado é lido do registro de metadados e não é uma linha) / platform = reservado.", + options: { + platform: "plataforma", + package: "pacote", + admin: "administrador" + } + }, + customized: { + label: "Personalizado", + help: "Definido quando um administrador edita uma linha package (uma cópia gravada pelo semeador de inicialização da 18.0, já aposentado). O processo de propriedade o lê: uma cópia editada sob um nome declarado é mantida como clone; uma intacta é excluída. Sem significado em linhas admin." + }, + created_at: { + label: "Criado em" + }, + updated_at: { + label: "Atualizado em" + } + }, + _views: { + active: { + label: "Ativos" + }, + inactive: { + label: "Inativos" + }, + by_object: { + label: "Por objeto" + }, + all_webhooks: { + label: "Todos" + } + } + } +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/pt-BR.source-hashes.generated.ts b/packages/plugins/plugin-webhooks/src/translations/pt-BR.source-hashes.generated.ts new file mode 100644 index 00000000000..acccb27ceb8 --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/pt-BR.source-hashes.generated.ts @@ -0,0 +1,28 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'pt-BR'. 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 ptBRGeneratedSourceHashes: Readonly> = { + "objects.sys_webhook.fields.method.options.delete": "f59e059ed51f9bfc", + "objects.sys_webhook.fields.method.options.get": "470848255971c548", + "objects.sys_webhook.fields.method.options.patch": "7de3603749decb30", + "objects.sys_webhook.fields.method.options.post": "004b24eab36d26a4", + "objects.sys_webhook.fields.method.options.put": "04d929ecae7aa435", + "objects.sys_webhook.label": "b608f1636b7e8184", + "objects.sys_webhook.pluralLabel": "8fdd81bc76459a6a", +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/ru.objects.generated.ts b/packages/plugins/plugin-webhooks/src/translations/ru.objects.generated.ts new file mode 100644 index 00000000000..4af68bd609e --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/ru.objects.generated.ts @@ -0,0 +1,117 @@ +// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'ru'. + * 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 ruObjects: NonNullable = { + sys_webhook: { + label: "Веб-хук", + pluralLabel: "Веб-хуки", + description: "Исходящий HTTP-веб-хук, который ваша организация создаёт здесь или через API. Веб-хуки, встроенные в приложение, здесь не показаны. Оба вида отправляются через одну и ту же очередь доставки.", + fields: { + id: { + label: "ID веб-хука" + }, + name: { + label: "Имя", + help: "Имя в snake_case, уникальное в пределах организации, — используется в журналах и аудите" + }, + label: { + label: "Отображаемая метка" + }, + object_name: { + label: "Объект", + help: "Краткое имя объекта, события записей которого (create/update/delete) запускают этот веб-хук" + }, + triggers: { + label: "Триггеры", + help: "События записей, запускающие этот веб-хук (bulk_* передают количество, а не запись)", + options: { + create: "создание", + update: "обновление", + delete: "удаление", + bulk_update: "массовое обновление", + bulk_delete: "массовое удаление" + } + }, + url: { + label: "Целевой URL", + help: "Внешняя конечная точка, принимающая POST" + }, + method: { + label: "Метод HTTP", + help: "Метод HTTP для запроса обратного вызова", + options: { + get: "GET", + post: "POST", + put: "PUT", + patch: "PATCH", + delete: "DELETE" + } + }, + description: { + label: "Описание" + }, + active: { + label: "Активен", + help: "Неактивные веб-хуки диспетчер пропускает" + }, + definition_json: { + label: "Определение", + help: "Сериализованный JSON веб-хука (см. @objectstack/spec/automation/webhook) — тайм-аут и остальная часть заданного конверта. Учётные данные здесь НЕ хранятся: секрет подписи находится в зашифрованном поле `signing_secret`, а пользовательские заголовки — в зашифрованном поле `headers_secret`." + }, + headers_secret: { + label: "Пользовательские заголовки", + help: "Пользовательские HTTP-заголовки, отправляемые с каждой доставкой, в виде JSON-объекта ({\"Authorization\": \"Bearer …\"}). Хранятся в зашифрованном виде в sys_secret; при чтении возвращается маска, а не сами заголовки. Оставьте маску без изменений, чтобы сохранить текущее значение." + }, + signing_secret: { + label: "Секрет подписи", + help: "Ключ HMAC-SHA256 для подписи доставок (X-Objectstack-Signature). Хранится в зашифрованном виде в sys_secret; при чтении возвращается маска, а не ключ. Оставьте маску без изменений, чтобы сохранить текущее значение." + }, + managed_by: { + label: "Кем управляется", + help: "Происхождение записи: admin = создана в Setup или через API / package = копия объявленного в коде веб-хука, записанная выведенным из употребления загрузчиком начальных данных версии 18.0 (сейчас такие не записываются: объявленный веб-хук читается из реестра метаданных и не является строкой) / platform = зарезервировано.", + options: { + platform: "платформа", + package: "пакет", + admin: "администратор" + } + }, + customized: { + label: "Изменён", + help: "Устанавливается, когда администратор редактирует строку package (копию, записанную выведенным из употребления загрузчиком начальных данных версии 18.0). Его читает процедура передачи владения: изменённая копия под объявленным именем сохраняется как клон, нетронутая — удаляется. Для строк admin не имеет смысла." + }, + created_at: { + label: "Создано" + }, + updated_at: { + label: "Обновлено" + } + }, + _views: { + active: { + label: "Активные" + }, + inactive: { + label: "Неактивные" + }, + by_object: { + label: "По объекту" + }, + all_webhooks: { + label: "Все" + } + } + } +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/ru.source-hashes.generated.ts b/packages/plugins/plugin-webhooks/src/translations/ru.source-hashes.generated.ts new file mode 100644 index 00000000000..0f0fc7ee04a --- /dev/null +++ b/packages/plugins/plugin-webhooks/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_webhook.fields.method.options.delete": "f59e059ed51f9bfc", + "objects.sys_webhook.fields.method.options.get": "470848255971c548", + "objects.sys_webhook.fields.method.options.patch": "7de3603749decb30", + "objects.sys_webhook.fields.method.options.post": "004b24eab36d26a4", + "objects.sys_webhook.fields.method.options.put": "04d929ecae7aa435", +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/zh-Hant.objects.generated.ts b/packages/plugins/plugin-webhooks/src/translations/zh-Hant.objects.generated.ts new file mode 100644 index 00000000000..cd2613a8064 --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/zh-Hant.objects.generated.ts @@ -0,0 +1,117 @@ +// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'zh-Hant'. + * 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 zhHantObjects: NonNullable = { + sys_webhook: { + label: "Webhook", + pluralLabel: "Webhook", + description: "由您的組織在此處或透過 API 建立的外送 HTTP Webhook。應用程式內建的 Webhook 不在此列出。兩者都透過同一個傳送佇列送出。", + fields: { + id: { + label: "Webhook ID" + }, + name: { + label: "名稱", + help: "snake_case 名稱,在每個組織內唯一——用於日誌與稽核引用" + }, + label: { + label: "顯示標籤" + }, + object_name: { + label: "物件", + help: "其記錄事件(create/update/delete)會觸發此 Webhook 的物件短名稱" + }, + triggers: { + label: "觸發條件", + help: "觸發此 Webhook 的記錄事件(bulk_* 傳送的是筆數,而非記錄)", + options: { + create: "建立", + update: "更新", + delete: "刪除", + bulk_update: "批次更新", + bulk_delete: "批次刪除" + } + }, + url: { + label: "目標 URL", + help: "接收 POST 請求的外部端點" + }, + method: { + label: "HTTP 方法", + help: "回呼請求使用的 HTTP 方法", + options: { + get: "GET", + post: "POST", + put: "PUT", + patch: "PATCH", + delete: "DELETE" + } + }, + description: { + label: "描述" + }, + active: { + label: "啟用", + help: "停用的 Webhook 會被排程器略過" + }, + definition_json: { + label: "定義", + help: "序列化的 Webhook JSON(參見 @objectstack/spec/automation/webhook)——逾時及所撰寫信封的其餘設定。憑證不儲存在此處:簽章密鑰保存在加密的 `signing_secret` 欄位中,自訂標頭保存在加密的 `headers_secret` 欄位中。" + }, + headers_secret: { + label: "自訂標頭", + help: "隨每次傳送一併送出的自訂 HTTP 標頭,採用 JSON 物件格式({\"Authorization\": \"Bearer …\"})。靜態儲存時加密寫入 sys_secret;讀取只會傳回遮罩,絕不傳回標頭內容。保持遮罩不變即保留目前的值。" + }, + signing_secret: { + label: "簽章密鑰", + help: "用於對傳送請求簽章的 HMAC-SHA256 金鑰(X-Objectstack-Signature)。靜態儲存時加密寫入 sys_secret;讀取只會傳回遮罩,絕不傳回金鑰。保持遮罩不變即保留目前的值。" + }, + managed_by: { + label: "管理來源", + help: "記錄來源:admin = 在 Setup 中或透過 API 建立 / package = 已退役的 18.0 啟動植入器寫入的程式碼宣告 Webhook 副本(現已不再寫入:宣告的 Webhook 從中繼資料登錄表讀取,不是資料列)/ platform = 保留。", + options: { + platform: "平台", + package: "套件", + admin: "管理員" + } + }, + customized: { + label: "已自訂", + help: "當管理員編輯 package 資料列(已退役的 18.0 啟動植入器寫入的副本)時設定。所有權程序會讀取它:宣告名稱下被編輯過的副本保留為複本,未改動的副本則被刪除。對 admin 來源的記錄無意義。" + }, + created_at: { + label: "建立時間" + }, + updated_at: { + label: "更新時間" + } + }, + _views: { + active: { + label: "啟用" + }, + inactive: { + label: "停用" + }, + by_object: { + label: "依物件" + }, + all_webhooks: { + label: "全部" + } + } + } +}; diff --git a/packages/plugins/plugin-webhooks/src/translations/zh-Hant.source-hashes.generated.ts b/packages/plugins/plugin-webhooks/src/translations/zh-Hant.source-hashes.generated.ts new file mode 100644 index 00000000000..2aa6cf6019c --- /dev/null +++ b/packages/plugins/plugin-webhooks/src/translations/zh-Hant.source-hashes.generated.ts @@ -0,0 +1,28 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * Auto-generated by 'os i18n extract' for locale 'zh-Hant'. 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 zhHantGeneratedSourceHashes: Readonly> = { + "objects.sys_webhook.fields.id.label": "9a4c8ec2a2567b95", + "objects.sys_webhook.fields.method.options.delete": "f59e059ed51f9bfc", + "objects.sys_webhook.fields.method.options.get": "470848255971c548", + "objects.sys_webhook.fields.method.options.patch": "7de3603749decb30", + "objects.sys_webhook.fields.method.options.post": "004b24eab36d26a4", + "objects.sys_webhook.fields.method.options.put": "04d929ecae7aa435", + "objects.sys_webhook.label": "b608f1636b7e8184", +}; diff --git a/scripts/i18n-stale-fill-baseline.json b/scripts/i18n-stale-fill-baseline.json index 0967ef424bc..8a4d57974b0 100644 --- a/scripts/i18n-stale-fill-baseline.json +++ b/scripts/i18n-stale-fill-baseline.json @@ -1 +1,3 @@ -{} +{ + "packages/plugins/plugin-webhooks/src/translations/objects.generated.ts#sys_webhook.pluralLabel": "benign coincidence, not drift (#30512): Chinese has no plural, so zh-CN and zh-Hant both keep the product term 'Webhook' for the plural label; the source plural 'Webhooks' was never their text." +}