Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/30512-plugin-webhooks-locales.md
Original file line number Diff line number Diff line change
@@ -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.
16 changes: 15 additions & 1 deletion packages/plugins/plugin-webhooks/scripts/i18n-extract.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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`
Expand All @@ -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 } },
],
});

Expand Down
Original file line number Diff line number Diff line change
@@ -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<TranslationData['objects']> = {
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: "الكل"
}
}
}
};
Original file line number Diff line number Diff line change
@@ -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
* `<locale>.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<Record<string, string>> = {
"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",
};
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
});

Expand Down
Original file line number Diff line number Diff line change
@@ -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<TranslationData['objects']> = {
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"
}
}
}
};
Original file line number Diff line number Diff line change
@@ -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
* `<locale>.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<Record<string, string>> = {
"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",
};
Loading
Loading