diff --git a/.changeset/30512-plugin-audit-locales.md b/.changeset/30512-plugin-audit-locales.md new file mode 100644 index 00000000000..57e32b2b44e --- /dev/null +++ b/.changeset/30512-plugin-audit-locales.md @@ -0,0 +1,10 @@ +--- +'@objectstack/plugin-audit': patch +--- + +i18n(plugin-audit): the audit, activity and comment objects and the activity-feed sentences ship in all eleven platform languages + +Clause-②: no +Metadata-protocol: none + +`sys_audit_log`, `sys_activity`, `sys_comment` and `sys_comment_reaction` now carry 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`, and so do the activity-feed summaries ("Created … ", "Updated …: fields", "… mentioned you"). A reader in one of those languages sees the audit trail, the activity feed and the mention notice in their own language instead of English. 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 seven tags, so the existing `check:i18n` bundle check covers them. Part of #30512. diff --git a/packages/plugins/plugin-audit/scripts/i18n-extract.config.ts b/packages/plugins/plugin-audit/scripts/i18n-extract.config.ts index 4ef8ba65ecb..46d785285b2 100644 --- a/packages/plugins/plugin-audit/scripts/i18n-extract.config.ts +++ b/packages/plugins/plugin-audit/scripts/i18n-extract.config.ts @@ -8,7 +8,7 @@ * strings were seeded from @objectstack/platform-objects.) * * os i18n extract packages/plugins/plugin-audit/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-audit/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-audit/src/activity-summary-reader-locale.integration.test.ts b/packages/plugins/plugin-audit/src/activity-summary-reader-locale.integration.test.ts index bac65d9d414..06d0710d2c8 100644 --- a/packages/plugins/plugin-audit/src/activity-summary-reader-locale.integration.test.ts +++ b/packages/plugins/plugin-audit/src/activity-summary-reader-locale.integration.test.ts @@ -161,8 +161,13 @@ describe('sys_activity summary — rendered in the reader\'s language (#26167)', expect((await summaries(reader('zh')))[0]).toBe('创建了 合同 "NDA"'); }); + it('a regional reader locale reads its platform-table pack (`fr-FR` reads the `fr` pack, #30512)', async () => { + expect((await summaries(reader('fr-FR')))[0]).toBe('A créé Contract « NDA »'); + }); + it('a reader locale with no template keeps the stored sentence', async () => { - expect((await summaries(reader('fr-FR')))[0]).toBe('Created Contract "NDA"'); + // Italian is not a platform-table language, so no pack carries the template. + expect((await summaries(reader('it-IT')))[0]).toBe('Created Contract "NDA"'); }); it('serves the code to no caller but the system, and composes when only `summary` is projected', async () => { diff --git a/packages/plugins/plugin-audit/src/translations/ar.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/ar.objects.generated.ts new file mode 100644 index 00000000000..0589f9d51aa --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/ar.objects.generated.ts @@ -0,0 +1,290 @@ +// 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_audit_log: { + label: "سجل التدقيق", + pluralLabel: "سجلات التدقيق", + description: "سجل تدقيق غير قابل للتعديل لأحداث المنصّة", + fields: { + created_at: { + label: "الطابع الزمني" + }, + action: { + label: "الإجراء", + help: "نوع الإجراء (snake_case)", + options: { + create: "إنشاء", + read: "قراءة", + update: "تحديث", + delete: "حذف", + login: "تسجيل الدخول", + logout: "تسجيل الخروج", + login_failed: "فشل تسجيل الدخول", + account_locked: "الحساب مقفل", + config_change: "تغيير الإعدادات", + import: "استيراد", + platform_admin_standing_change: "تغيير صلاحية مسؤول المنصّة", + action_invocation: "استدعاء إجراء" + } + }, + user_id: { + label: "المستخدم", + help: "المستخدم الذي نفّذ الإجراء (null للإجراءات غير الصادرة عن مستخدم أو عن خدمة — انظر المنفِّذ)" + }, + actor: { + label: "المنفِّذ", + help: "الجهة التي نفّذت الإجراء: معرّف مستخدم، أو svc:، أو null" + }, + object_name: { + label: "الكائن", + help: "الكائن المستهدف (مثل sys_user وproject_task)" + }, + record_id: { + label: "السجل", + help: "معرّف السجل المتأثّر" + }, + old_value: { + label: "القيمة القديمة", + help: "الحالة السابقة مُسلسَلة بصيغة JSON" + }, + new_value: { + label: "القيمة الجديدة", + help: "الحالة الجديدة مُسلسَلة بصيغة JSON" + }, + ip_address: { + label: "عنوان IP" + }, + user_agent: { + label: "وكيل المستخدم" + }, + tenant_id: { + label: "المستأجر", + help: "المؤسسة التي يخصّها هذا الحدث؛ فارغ للإجراءات على مستوى النشر" + }, + metadata: { + label: "البيانات الوصفية", + help: "سياق إضافي مُسلسَل بصيغة JSON" + }, + id: { + label: "معرّف سجل التدقيق" + } + }, + _views: { + recent: { + label: "الأحدث", + emptyState: { + title: "لا توجد أحداث تدقيق", + message: "سيظهر النشاط هنا عندما يتفاعل المستخدمون مع المنصّة." + } + }, + writes_only: { + label: "عمليات الكتابة" + }, + auth_events: { + label: "المصادقة" + }, + record_views: { + label: "عرض السجلات", + emptyState: { + title: "لا توجد عمليات عرض سجلات مسجّلة", + message: "تدقيق عرض السجلات اختياري لكل كائن. تظهر الصفوف هنا بعد إضافة كائن إلى قائمة readAudit.objects في إضافة التدقيق وفتح أحدهم أحد سجلاته." + } + }, + config_changes: { + label: "الإعدادات" + }, + all_events: { + label: "الكل" + } + } + }, + sys_activity: { + label: "موجز النشاط", + pluralLabel: "موجز النشاط", + description: "ما فعله الأشخاص بالسجلات مؤخرًا، الأحدث أولًا: من أنشأ أو غيّر أو حذف ماذا. تُحفظ الإدخالات لمدة 14 يومًا.", + fields: { + id: { + label: "معرّف النشاط" + }, + timestamp: { + label: "الطابع الزمني" + }, + type: { + label: "النوع", + help: "نوع النشاط. الخيارات المُعرَّفة هي المجموعة المضمّنة في المنصّة من مفردات مفتوحة، وليست تعدادًا مغلقًا: يمكن لمؤلفي البيانات الوصفية إضافة قيمهم الخاصة (القناة المعتمدة: `activityMilestones[].type`، ADR-0052 §5b.2)، وتُخزَّن القيمة غير المُعرَّفة حرفيًا بدل رفضها. على المستهلكين عرض القيمة غير المعروفة بدل افتراض أن هذه القائمة شاملة: المفردات مفتوحة بقرار، وليست ثغرة تنتظر الفرض.", + options: { + created: "تم الإنشاء", + updated: "تم التحديث", + deleted: "تم الحذف", + commented: "تم التعليق", + mentioned: "تمت الإشارة", + shared: "تمت المشاركة", + assigned: "تم الإسناد", + completed: "مكتمل", + scheduled: "مجدول", + login: "تسجيل الدخول", + logout: "تسجيل الخروج", + system: "النظام" + } + }, + summary: { + label: "الملخّص", + help: "ملخّص مقروء من سطر واحد" + }, + actor_id: { + label: "المنفِّذ" + }, + actor_name: { + label: "اسم المنفِّذ" + }, + actor_avatar_url: { + label: "الصورة الرمزية للمنفِّذ" + }, + object_name: { + label: "الكائن", + help: "الاسم المختصر للكائن المستهدف (مثل account وsys_user)" + }, + record_id: { + label: "السجل" + }, + record_label: { + label: "تسمية السجل", + help: "التسمية المعروضة للسجل المستهدف وقت الكتابة" + }, + source_object: { + label: "الكائن المصدر", + help: "اسم كائن الكيان المصدر الغني الذي اشتُقّ منه هذا النشاط (مثل \"sys_email\"). يكون null عندما يخصّ النشاط السجل المستهدف نفسه." + }, + source_id: { + label: "معرّف المصدر", + help: "معرّف سجل الكيان المصدر الغني (يقترن بـ source_object) — يتيح للخط الزمني الانتقال إلى سجل البريد/المكالمة/الاجتماع الكامل." + }, + url: { + label: "URL", + help: "رابط عميق اختياري إلى هدف النشاط" + }, + environment_id: { + label: "البيئة", + help: "سياق البيئة (عمليات النشر متعددة البيئات)" + }, + metadata: { + label: "البيانات الوصفية", + help: "سياق إضافي مُسلسَل بصيغة JSON" + }, + changed_fields: { + label: "الحقول المتغيّرة", + help: "مجموعة مفاتيح التغيير المسجَّل: في التحديث، كل حقل تذكره القيم القديمة/الجديدة المسجَّلة؛ وفارغة لكل صف آخر. تختمها المنصّة وقت الكتابة؛ وتُقدَّم مقصورة على الحقول المتاحة للقارئ. تعني NULL أن الصف لم يُختم بعد (شغّل `os migrate activity-changed-fields`)." + }, + milestone_key: { + label: "مفتاح المعلَم", + help: "لمعلَم نشاط مُطلَق: مفتاح واحد مرتّب ومفصول بفواصل لكل حقل كان تعريف activityMilestones للكائن يراقبه عند الإطلاق؛ وNULL لكل صف آخر. تختمه المنصّة وقت الكتابة ولا يُقدَّم أبدًا: تقارنه قاعدة القراءة بالتعريف الحالي." + } + }, + _views: { + recent: { + label: "النشاط الأخير", + emptyState: { + title: "لا يوجد نشاط حديث", + message: "تظهر هنا التغييرات التي يجريها الأشخاص على السجلات، الأحدث أولًا." + } + }, + all: { + label: "كل الإدخالات" + } + } + }, + sys_comment: { + label: "تعليق", + pluralLabel: "التعليقات", + description: "تعليقات متسلسلة مرفقة بالسجلات عبر thread_id", + fields: { + id: { + label: "معرّف التعليق" + }, + thread_id: { + label: "سلسلة المحادثة", + help: "معرّف سلسلة المحادثة — بالاصطلاح `{object}:{record_id}` (مثل `account:9001`)" + }, + object_name: { + label: "الكائن الأصل", + help: "كائن السجل الذي يحدده `thread_id` — تختمه المنصّة ولا يكتبه المؤلفون أبدًا" + }, + record_id: { + label: "السجل الأصل", + help: "معرّف السجل الذي يحدده `thread_id` — تختمه المنصّة ولا يكتبه المؤلفون أبدًا" + }, + parent_id: { + label: "التعليق الأصل", + help: "تعليق أصل اختياري للردود المتداخلة" + }, + author_id: { + label: "الكاتب" + }, + author_name: { + label: "اسم الكاتب" + }, + author_avatar_url: { + label: "الصورة الرمزية للكاتب" + }, + body: { + label: "النص", + help: "نص التعليق (يدعم Markdown)" + }, + mentions: { + label: "الإشارات", + help: "مصفوفة JSON لمعرّفات المستخدمين المُشار إليهم بـ @ في التعليق" + }, + is_edited: { + label: "تم التعديل" + }, + edited_at: { + label: "تاريخ التعديل" + }, + created_at: { + label: "تاريخ الإنشاء" + }, + updated_at: { + label: "تاريخ التحديث" + } + } + }, + sys_comment_reaction: { + label: "تفاعل مع تعليق", + pluralLabel: "التفاعلات مع التعليقات", + description: "تفاعل برمز تعبيري مع تعليق، يملكه المستخدم الذي تفاعل", + fields: { + id: { + label: "معرّف التفاعل" + }, + comment_id: { + label: "التعليق", + help: "معرّف sys_comment الذي يعود إليه هذا التفاعل. يمكن قراءة التفاعل عندما يمكن قراءة ذلك التعليق تحديدًا." + }, + emoji: { + label: "الرمز التعبيري", + help: "الرمز التعبيري، بصفته تسلسل الأحرف الذي يعرضه العميل (مثل 👍)" + }, + user_id: { + label: "المستخدم", + help: "المستخدم الذي تفاعل. يُختم من الجلسة عند الإنشاء؛ وتُستبدل القيمة التي يقدّمها العميل." + }, + created_at: { + label: "تاريخ الإنشاء" + } + } + } +}; diff --git a/packages/plugins/plugin-audit/src/translations/ar.source-hashes.generated.ts b/packages/plugins/plugin-audit/src/translations/ar.source-hashes.generated.ts new file mode 100644 index 00000000000..6a51c139039 --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/ar.source-hashes.generated.ts @@ -0,0 +1,22 @@ +// 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_activity.fields.url.label": "2203b0b9f72534f7", +}; diff --git a/packages/plugins/plugin-audit/src/translations/de.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/de.objects.generated.ts new file mode 100644 index 00000000000..363052bd9a4 --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/de.objects.generated.ts @@ -0,0 +1,290 @@ +// 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_audit_log: { + label: "Audit-Protokoll", + pluralLabel: "Audit-Protokolle", + description: "Unveränderlicher Audit-Trail für Plattformereignisse", + fields: { + created_at: { + label: "Zeitstempel" + }, + action: { + label: "Aktion", + help: "Aktionstyp (snake_case)", + options: { + create: "Erstellen", + read: "Lesen", + update: "Aktualisieren", + delete: "Löschen", + login: "Anmeldung", + logout: "Abmeldung", + login_failed: "Anmeldung fehlgeschlagen", + account_locked: "Konto gesperrt", + config_change: "Konfigurationsänderung", + import: "Import", + platform_admin_standing_change: "Änderung des Plattform-Admin-Status", + action_invocation: "Aktionsaufruf" + } + }, + user_id: { + label: "Benutzer", + help: "Benutzer, der die Aktion ausgeführt hat (null bei Aktionen ohne Benutzer bzw. von Diensten — siehe Akteur)" + }, + actor: { + label: "Akteur", + help: "Prinzipal, der die Aktion ausgeführt hat: eine Benutzer-ID, svc: oder null" + }, + object_name: { + label: "Objekt", + help: "Zielobjekt (z. B. sys_user, project_task)" + }, + record_id: { + label: "Datensatz", + help: "ID des betroffenen Datensatzes" + }, + old_value: { + label: "Alter Wert", + help: "Vorheriger Zustand, als JSON serialisiert" + }, + new_value: { + label: "Neuer Wert", + help: "Neuer Zustand, als JSON serialisiert" + }, + ip_address: { + label: "IP-Adresse" + }, + user_agent: { + label: "User-Agent" + }, + tenant_id: { + label: "Mandant", + help: "Organisation, die dieses Ereignis betrifft; leer bei einer Aktion auf Bereitstellungsebene" + }, + metadata: { + label: "Metadaten", + help: "Zusätzlicher Kontext, als JSON serialisiert" + }, + id: { + label: "Audit-Protokoll-ID" + } + }, + _views: { + recent: { + label: "Neueste", + emptyState: { + title: "Keine Audit-Ereignisse", + message: "Aktivitäten erscheinen hier, sobald Benutzer mit der Plattform arbeiten." + } + }, + writes_only: { + label: "Schreibvorgänge" + }, + auth_events: { + label: "Authentifizierung" + }, + record_views: { + label: "Datensatzaufrufe", + emptyState: { + title: "Keine Datensatzaufrufe protokolliert", + message: "Die Prüfung von Datensatzaufrufen wird pro Objekt aktiviert. Zeilen erscheinen hier, sobald ein Objekt in die Liste readAudit.objects des Audit-Plugins aufgenommen wird und jemand einen seiner Datensätze öffnet." + } + }, + config_changes: { + label: "Konfiguration" + }, + all_events: { + label: "Alle" + } + } + }, + sys_activity: { + label: "Aktivitätsfeed", + pluralLabel: "Aktivitätsfeed", + description: "Was zuletzt an Datensätzen getan wurde, neueste zuerst: wer was erstellt, geändert oder gelöscht hat. Einträge werden 14 Tage aufbewahrt.", + fields: { + id: { + label: "Aktivitäts-ID" + }, + timestamp: { + label: "Zeitstempel" + }, + type: { + label: "Typ", + help: "Aktivitätsart. Die deklarierten Optionen sind der in die Plattform EINGEBAUTE Satz eines offenen Vokabulars, keine geschlossene Aufzählung: Metadatenautoren können eigene Werte beisteuern (vorgesehener Weg: `activityMilestones[].type`, ADR-0052 §5b.2), und ein nicht deklarierter Wert wird unverändert gespeichert statt abgelehnt. Verbraucher müssen einen unbekannten Wert darstellen, statt diese Liste für vollständig zu halten: Das Vokabular ist bewusst offen, keine Lücke, die auf Durchsetzung wartet.", + options: { + created: "erstellt", + updated: "aktualisiert", + deleted: "gelöscht", + commented: "kommentiert", + mentioned: "erwähnt", + shared: "geteilt", + assigned: "zugewiesen", + completed: "abgeschlossen", + scheduled: "geplant", + login: "Anmeldung", + logout: "Abmeldung", + system: "System" + } + }, + summary: { + label: "Zusammenfassung", + help: "Lesbare einzeilige Zusammenfassung" + }, + actor_id: { + label: "Akteur" + }, + actor_name: { + label: "Name des Akteurs" + }, + actor_avatar_url: { + label: "Avatar des Akteurs" + }, + object_name: { + label: "Objekt", + help: "Kurzname des Zielobjekts (z. B. account, sys_user)" + }, + record_id: { + label: "Datensatz" + }, + record_label: { + label: "Datensatzbezeichnung", + help: "Anzeigebezeichnung des Zieldatensatzes zum Schreibzeitpunkt" + }, + source_object: { + label: "Quellobjekt", + help: "Objektname der umfangreichen Quellentität, aus der diese Aktivität abgeleitet wurde (z. B. \"sys_email\"). Null, wenn die Aktivität den Zieldatensatz selbst betrifft." + }, + source_id: { + label: "Quell-ID", + help: "Datensatz-ID der umfangreichen Quellentität (zusammen mit source_object) — ermöglicht der Zeitleiste den Sprung zum vollständigen E-Mail-, Anruf- oder Besprechungsdatensatz." + }, + url: { + label: "URL", + help: "Optionaler Deep Link zum Ziel der Aktivität" + }, + environment_id: { + label: "Umgebung", + help: "Umgebungskontext (Bereitstellungen mit mehreren Umgebungen)" + }, + metadata: { + label: "Metadaten", + help: "Zusätzlicher Kontext, als JSON serialisiert" + }, + changed_fields: { + label: "Geänderte Felder", + help: "Die Schlüsselmenge der erfassten Änderung: bei einer Aktualisierung jedes Feld, das die erfassten alten/neuen Werte nennen; bei jeder anderen Zeile leer. Von der Plattform beim Schreiben gesetzt; ausgeliefert nur mit den Feldern, die der Leser sehen darf. NULL bedeutet, dass die Zeile noch nicht gekennzeichnet ist (führen Sie `os migrate activity-changed-fields` aus)." + }, + milestone_key: { + label: "Meilensteinschlüssel", + help: "Für einen ausgelösten Aktivitätsmeilenstein ein sortierter, durch Kommas verbundener Schlüssel aller Felder, die die activityMilestones-Deklaration des Objekts beim Auslösen überwacht hat; NULL bei jeder anderen Zeile. Von der Plattform beim Schreiben gesetzt und nie ausgeliefert: Die Leseregel vergleicht ihn mit der aktuellen Deklaration." + } + }, + _views: { + recent: { + label: "Letzte Aktivitäten", + emptyState: { + title: "Keine aktuellen Aktivitäten", + message: "Änderungen an Datensätzen erscheinen hier, neueste zuerst." + } + }, + all: { + label: "Alle Einträge" + } + } + }, + sys_comment: { + label: "Kommentar", + pluralLabel: "Kommentare", + description: "Kommentare in Threads, über thread_id an Datensätze angehängt", + fields: { + id: { + label: "Kommentar-ID" + }, + thread_id: { + label: "Thread", + help: "Thread-Kennung — üblicherweise `{object}:{record_id}` (z. B. `account:9001`)" + }, + object_name: { + label: "Übergeordnetes Objekt", + help: "Das Objekt des Datensatzes, den `thread_id` nennt — von der Plattform gesetzt, nie von Autoren geschrieben" + }, + record_id: { + label: "Übergeordneter Datensatz", + help: "Die ID des Datensatzes, den `thread_id` nennt — von der Plattform gesetzt, nie von Autoren geschrieben" + }, + parent_id: { + label: "Übergeordneter Kommentar", + help: "Optionaler übergeordneter Kommentar für verschachtelte Antworten" + }, + author_id: { + label: "Autor" + }, + author_name: { + label: "Name des Autors" + }, + author_avatar_url: { + label: "Avatar des Autors" + }, + body: { + label: "Inhalt", + help: "Kommentartext (Markdown wird unterstützt)" + }, + mentions: { + label: "Erwähnungen", + help: "JSON-Array der im Kommentar per @ erwähnten Benutzer-IDs" + }, + is_edited: { + label: "Bearbeitet" + }, + edited_at: { + label: "Bearbeitet am" + }, + created_at: { + label: "Erstellt am" + }, + updated_at: { + label: "Aktualisiert am" + } + } + }, + sys_comment_reaction: { + label: "Kommentarreaktion", + pluralLabel: "Kommentarreaktionen", + description: "Eine Emoji-Reaktion auf einen Kommentar, die dem reagierenden Benutzer gehört", + fields: { + id: { + label: "Reaktions-ID" + }, + comment_id: { + label: "Kommentar", + help: "Die ID des sys_comment, auf den sich diese Reaktion bezieht. Die Reaktion ist genau dann lesbar, wenn dieser Kommentar es ist." + }, + emoji: { + label: "Emoji", + help: "Das Emoji als Zeichenfolge, die der Client darstellt (zum Beispiel 👍)" + }, + user_id: { + label: "Benutzer", + help: "Der Benutzer, der reagiert hat. Wird beim Erstellen aus der Sitzung gesetzt; ein vom Client gelieferter Wert wird ersetzt." + }, + created_at: { + label: "Erstellt am" + } + } + } +}; diff --git a/packages/plugins/plugin-audit/src/translations/de.source-hashes.generated.ts b/packages/plugins/plugin-audit/src/translations/de.source-hashes.generated.ts new file mode 100644 index 00000000000..d68f687aa04 --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/de.source-hashes.generated.ts @@ -0,0 +1,25 @@ +// 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_activity.fields.url.label": "2203b0b9f72534f7", + "objects.sys_audit_log.fields.action.options.import": "05c80d3a61ec3290", + "objects.sys_comment.fields.thread_id.label": "7bf9fcadc2761a11", + "objects.sys_comment_reaction.fields.emoji.label": "f281bddefc11042a", +}; diff --git a/packages/plugins/plugin-audit/src/translations/fr.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/fr.objects.generated.ts new file mode 100644 index 00000000000..530e28bd561 --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/fr.objects.generated.ts @@ -0,0 +1,290 @@ +// 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_audit_log: { + label: "Journal d’audit", + pluralLabel: "Journaux d’audit", + description: "Piste d’audit immuable des événements de la plateforme", + fields: { + created_at: { + label: "Horodatage" + }, + action: { + label: "Action", + help: "Type d’action (snake_case)", + options: { + create: "Création", + read: "Lecture", + update: "Mise à jour", + delete: "Suppression", + login: "Connexion", + logout: "Déconnexion", + login_failed: "Échec de connexion", + account_locked: "Compte verrouillé", + config_change: "Modification de configuration", + import: "Import", + platform_admin_standing_change: "Changement de statut d’administrateur de plateforme", + action_invocation: "Appel d’action" + } + }, + user_id: { + label: "Utilisateur", + help: "Utilisateur ayant effectué l’action (null pour les actions sans utilisateur ou de service — voir Auteur de l’action)" + }, + actor: { + label: "Auteur de l’action", + help: "Principal ayant effectué l’action : un identifiant utilisateur, svc: ou null" + }, + object_name: { + label: "Objet", + help: "Objet cible (par ex. sys_user, project_task)" + }, + record_id: { + label: "Enregistrement", + help: "Identifiant de l’enregistrement concerné" + }, + old_value: { + label: "Ancienne valeur", + help: "État précédent sérialisé en JSON" + }, + new_value: { + label: "Nouvelle valeur", + help: "Nouvel état sérialisé en JSON" + }, + ip_address: { + label: "Adresse IP" + }, + user_agent: { + label: "Agent utilisateur" + }, + tenant_id: { + label: "Locataire", + help: "Organisation concernée par cet événement ; vide pour une action au niveau du déploiement" + }, + metadata: { + label: "Métadonnées", + help: "Contexte supplémentaire sérialisé en JSON" + }, + id: { + label: "ID du journal d’audit" + } + }, + _views: { + recent: { + label: "Récents", + emptyState: { + title: "Aucun événement d’audit", + message: "L’activité apparaîtra ici à mesure que les utilisateurs interagissent avec la plateforme." + } + }, + writes_only: { + label: "Écritures" + }, + auth_events: { + label: "Authentification" + }, + record_views: { + label: "Consultations d’enregistrements", + emptyState: { + title: "Aucune consultation d’enregistrement journalisée", + message: "L’audit des consultations est activé objet par objet. Des lignes apparaissent ici dès qu’un objet est ajouté à la liste readAudit.objects du plugin d’audit et que quelqu’un ouvre l’un de ses enregistrements." + } + }, + config_changes: { + label: "Configuration" + }, + all_events: { + label: "Tous" + } + } + }, + sys_activity: { + label: "Fil d’activité", + pluralLabel: "Fil d’activité", + description: "Ce que les utilisateurs ont fait récemment sur les enregistrements, du plus récent au plus ancien : qui a créé, modifié ou supprimé quoi. Les entrées sont conservées 14 jours.", + fields: { + id: { + label: "ID de l’activité" + }, + timestamp: { + label: "Horodatage" + }, + type: { + label: "Type", + help: "Type d’activité. Les options déclarées sont l’ensemble INTÉGRÉ de la plateforme d’un vocabulaire ouvert, pas une énumération fermée : les auteurs de métadonnées peuvent ajouter leurs propres valeurs (canal prévu : `activityMilestones[].type`, ADR-0052 §5b.2), et une valeur non déclarée est stockée telle quelle au lieu d’être rejetée. Les consommateurs doivent afficher une valeur inconnue au lieu de supposer cette liste exhaustive : le vocabulaire est ouvert par décision, ce n’est pas une lacune en attente de contrôle.", + options: { + created: "créé", + updated: "modifié", + deleted: "supprimé", + commented: "commenté", + mentioned: "mentionné", + shared: "partagé", + assigned: "attribué", + completed: "terminé", + scheduled: "planifié", + login: "connexion", + logout: "déconnexion", + system: "système" + } + }, + summary: { + label: "Résumé", + help: "Résumé lisible sur une ligne" + }, + actor_id: { + label: "Auteur de l’action" + }, + actor_name: { + label: "Nom de l’auteur de l’action" + }, + actor_avatar_url: { + label: "Avatar de l’auteur de l’action" + }, + object_name: { + label: "Objet", + help: "Nom court de l’objet cible (par ex. account, sys_user)" + }, + record_id: { + label: "Enregistrement" + }, + record_label: { + label: "Libellé de l’enregistrement", + help: "Libellé affiché de l’enregistrement cible au moment de l’écriture" + }, + source_object: { + label: "Objet source", + help: "Nom d’objet de l’entité source enrichie dont cette activité est dérivée (par ex. \"sys_email\"). Null quand l’activité porte sur l’enregistrement cible lui-même." + }, + source_id: { + label: "ID de la source", + help: "Identifiant d’enregistrement de l’entité source enrichie (associé à source_object) — permet à la chronologie d’ouvrir l’enregistrement complet de l’e-mail, de l’appel ou de la réunion." + }, + url: { + label: "URL", + help: "Lien profond facultatif vers la cible de l’activité" + }, + environment_id: { + label: "Environnement", + help: "Contexte d’environnement (déploiements multi-environnements)" + }, + metadata: { + label: "Métadonnées", + help: "Contexte supplémentaire sérialisé en JSON" + }, + changed_fields: { + label: "Champs modifiés", + help: "L’ensemble des clés du changement enregistré : pour une mise à jour, chaque champ nommé par ses anciennes/nouvelles valeurs ; vide pour toute autre ligne. Apposé par la plateforme à l’écriture ; servi restreint aux champs servis au lecteur. NULL signifie que la ligne n’est pas encore marquée (exécutez `os migrate activity-changed-fields`)." + }, + milestone_key: { + label: "Clé de jalon", + help: "Pour un jalon d’activité déclenché, une clé unique, triée et jointe par des virgules, de chaque champ que la déclaration activityMilestones de l’objet surveillait au déclenchement ; NULL pour toute autre ligne. Apposée par la plateforme à l’écriture et jamais servie : la règle de lecture la compare à la déclaration actuelle." + } + }, + _views: { + recent: { + label: "Activité récente", + emptyState: { + title: "Aucune activité récente", + message: "Les modifications apportées aux enregistrements apparaissent ici, des plus récentes aux plus anciennes." + } + }, + all: { + label: "Toutes les entrées" + } + } + }, + sys_comment: { + label: "Commentaire", + pluralLabel: "Commentaires", + description: "Commentaires en fil rattachés aux enregistrements via thread_id", + fields: { + id: { + label: "ID du commentaire" + }, + thread_id: { + label: "Fil", + help: "Identifiant du fil — par convention `{object}:{record_id}` (par ex. `account:9001`)" + }, + object_name: { + label: "Objet parent", + help: "L’objet de l’enregistrement désigné par `thread_id` — apposé par la plateforme, jamais écrit par les auteurs" + }, + record_id: { + label: "Enregistrement parent", + help: "L’identifiant de l’enregistrement désigné par `thread_id` — apposé par la plateforme, jamais écrit par les auteurs" + }, + parent_id: { + label: "Commentaire parent", + help: "Commentaire parent facultatif pour les réponses imbriquées" + }, + author_id: { + label: "Auteur" + }, + author_name: { + label: "Nom de l’auteur" + }, + author_avatar_url: { + label: "Avatar de l’auteur" + }, + body: { + label: "Contenu", + help: "Texte du commentaire (Markdown pris en charge)" + }, + mentions: { + label: "Mentions", + help: "Tableau JSON des identifiants d’utilisateurs @mentionnés dans le commentaire" + }, + is_edited: { + label: "Modifié" + }, + edited_at: { + label: "Modifié le" + }, + created_at: { + label: "Créé le" + }, + updated_at: { + label: "Mis à jour le" + } + } + }, + sys_comment_reaction: { + label: "Réaction au commentaire", + pluralLabel: "Réactions aux commentaires", + description: "Une réaction emoji à un commentaire, appartenant à l’utilisateur qui a réagi", + fields: { + id: { + label: "ID de la réaction" + }, + comment_id: { + label: "Commentaire", + help: "L’identifiant du sys_comment visé par cette réaction. La réaction est lisible exactement quand ce commentaire l’est." + }, + emoji: { + label: "Emoji", + help: "L’emoji, sous la forme de la séquence de caractères affichée par le client (par exemple 👍)" + }, + user_id: { + label: "Utilisateur", + help: "L’utilisateur qui a réagi. Apposé depuis la session à la création ; une valeur fournie par le client est remplacée." + }, + created_at: { + label: "Créé le" + } + } + } +}; diff --git a/packages/plugins/plugin-audit/src/translations/fr.source-hashes.generated.ts b/packages/plugins/plugin-audit/src/translations/fr.source-hashes.generated.ts new file mode 100644 index 00000000000..122315505bc --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/fr.source-hashes.generated.ts @@ -0,0 +1,27 @@ +// 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_activity.fields.type.label": "901bb552898b2cab", + "objects.sys_activity.fields.url.label": "2203b0b9f72534f7", + "objects.sys_audit_log.fields.action.label": "a36bba313a7aa9ab", + "objects.sys_audit_log.fields.action.options.import": "05c80d3a61ec3290", + "objects.sys_comment.fields.mentions.label": "4c16427f1faa3679", + "objects.sys_comment_reaction.fields.emoji.label": "f281bddefc11042a", +}; diff --git a/packages/plugins/plugin-audit/src/translations/index.ts b/packages/plugins/plugin-audit/src/translations/index.ts index 05fcda15bd8..3f13241cc75 100644 --- a/packages/plugins/plugin-audit/src/translations/index.ts +++ b/packages/plugins/plugin-audit/src/translations/index.ts @@ -16,10 +16,36 @@ 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 { enMessages, zhCNMessages, jaJPMessages, esESMessages } from './messages.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'; +import { + enMessages, + zhCNMessages, + jaJPMessages, + esESMessages, + zhHantMessages, + arMessages, + frMessages, + ptBRMessages, + ruMessages, + deMessages, + koMessages, +} from './messages.js'; /** * ## The provenance companions are READ here, not merely recorded @@ -55,4 +81,11 @@ export const AuditTranslations: TranslationBundle = { 'zh-CN': withSourceFallback({ objects: zhCNObjects, messages: zhCNMessages }, enSource, undefined, zhCNGeneratedSourceHashes), 'ja-JP': withSourceFallback({ objects: jaJPObjects, messages: jaJPMessages }, enSource, undefined, jaJPGeneratedSourceHashes), 'es-ES': withSourceFallback({ objects: esESObjects, messages: esESMessages }, enSource, undefined, esESGeneratedSourceHashes), + 'zh-Hant': withSourceFallback({ objects: zhHantObjects, messages: zhHantMessages }, enSource, undefined, zhHantGeneratedSourceHashes), + 'ar': withSourceFallback({ objects: arObjects, messages: arMessages }, enSource, undefined, arGeneratedSourceHashes), + 'fr': withSourceFallback({ objects: frObjects, messages: frMessages }, enSource, undefined, frGeneratedSourceHashes), + 'pt-BR': withSourceFallback({ objects: ptBRObjects, messages: ptBRMessages }, enSource, undefined, ptBRGeneratedSourceHashes), + 'ru': withSourceFallback({ objects: ruObjects, messages: ruMessages }, enSource, undefined, ruGeneratedSourceHashes), + 'de': withSourceFallback({ objects: deObjects, messages: deMessages }, enSource, undefined, deGeneratedSourceHashes), + 'ko': withSourceFallback({ objects: koObjects, messages: koMessages }, enSource, undefined, koGeneratedSourceHashes), }; diff --git a/packages/plugins/plugin-audit/src/translations/ko.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/ko.objects.generated.ts new file mode 100644 index 00000000000..d94303168e7 --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/ko.objects.generated.ts @@ -0,0 +1,290 @@ +// 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_audit_log: { + label: "감사 로그", + pluralLabel: "감사 로그", + description: "플랫폼 이벤트의 변경 불가능한 감사 추적", + fields: { + created_at: { + label: "타임스탬프" + }, + action: { + label: "작업", + help: "작업 유형(snake_case)", + options: { + create: "생성", + read: "조회", + update: "수정", + delete: "삭제", + login: "로그인", + logout: "로그아웃", + login_failed: "로그인 실패", + account_locked: "계정 잠김", + config_change: "구성 변경", + import: "가져오기", + platform_admin_standing_change: "플랫폼 관리자 권한 변경", + action_invocation: "작업 호출" + } + }, + user_id: { + label: "사용자", + help: "작업을 수행한 사용자(사용자가 아니거나 서비스 작업이면 null — 작업자 참조)" + }, + actor: { + label: "작업자", + help: "작업을 수행한 주체: 사용자 ID, svc: 또는 null" + }, + object_name: { + label: "개체", + help: "대상 개체(예: sys_user, project_task)" + }, + record_id: { + label: "레코드", + help: "영향을 받은 레코드의 ID" + }, + old_value: { + label: "이전 값", + help: "JSON으로 직렬화된 이전 상태" + }, + new_value: { + label: "새 값", + help: "JSON으로 직렬화된 새 상태" + }, + ip_address: { + label: "IP 주소" + }, + user_agent: { + label: "사용자 에이전트" + }, + tenant_id: { + label: "테넌트", + help: "이 이벤트가 관련된 조직이며, 배포 수준 작업이면 비어 있습니다" + }, + metadata: { + label: "메타데이터", + help: "JSON으로 직렬화된 추가 컨텍스트" + }, + id: { + label: "감사 로그 ID" + } + }, + _views: { + recent: { + label: "최근", + emptyState: { + title: "감사 이벤트 없음", + message: "사용자가 플랫폼을 사용하면 활동이 여기에 표시됩니다." + } + }, + writes_only: { + label: "쓰기" + }, + auth_events: { + label: "인증" + }, + record_views: { + label: "레코드 조회", + emptyState: { + title: "기록된 레코드 조회 없음", + message: "레코드 조회 감사는 개체별로 선택해 켭니다. 개체를 감사 플러그인의 readAudit.objects 목록에 추가하고 누군가 그 레코드를 열면 여기에 행이 표시됩니다." + } + }, + config_changes: { + label: "구성" + }, + all_events: { + label: "전체" + } + } + }, + sys_activity: { + label: "활동 피드", + pluralLabel: "활동 피드", + description: "사람들이 최근 레코드에 한 일을 최신순으로 보여 줍니다. 누가 무엇을 만들고 바꾸고 삭제했는지 확인할 수 있습니다. 항목은 14일간 보관됩니다.", + fields: { + id: { + label: "활동 ID" + }, + timestamp: { + label: "타임스탬프" + }, + type: { + label: "유형", + help: "활동 종류입니다. 선언된 옵션은 닫힌 열거형이 아니라 열린 어휘 중 플랫폼에 기본 제공되는 집합입니다. 메타데이터 작성자는 자신의 값을 추가할 수 있으며(공인 경로: `activityMilestones[].type`, ADR-0052 §5b.2), 선언되지 않은 값도 거부되지 않고 그대로 저장됩니다. 소비자는 이 목록이 전부라고 가정하지 말고 알 수 없는 값도 표시해야 합니다. 어휘가 열려 있는 것은 의도된 결정이며, 강제를 기다리는 빈틈이 아닙니다.", + options: { + created: "생성됨", + updated: "수정됨", + deleted: "삭제됨", + commented: "댓글 작성됨", + mentioned: "멘션됨", + shared: "공유됨", + assigned: "할당됨", + completed: "완료됨", + scheduled: "예약됨", + login: "로그인", + logout: "로그아웃", + system: "시스템" + } + }, + summary: { + label: "요약", + help: "사람이 읽을 수 있는 한 줄 요약" + }, + actor_id: { + label: "작업자" + }, + actor_name: { + label: "작업자 이름" + }, + actor_avatar_url: { + label: "작업자 아바타" + }, + object_name: { + label: "개체", + help: "대상 개체의 짧은 이름(예: account, sys_user)" + }, + record_id: { + label: "레코드" + }, + record_label: { + label: "레코드 레이블", + help: "기록 시점의 대상 레코드 표시 레이블" + }, + source_object: { + label: "원본 개체", + help: "이 활동이 파생된 원본 엔터티의 개체 이름(예: \"sys_email\")입니다. 활동이 대상 레코드 자체에 관한 것이면 null입니다." + }, + source_id: { + label: "원본 ID", + help: "원본 엔터티의 레코드 ID(source_object와 짝을 이룸)로, 타임라인에서 전체 이메일/통화/회의 레코드로 이동할 수 있게 합니다." + }, + url: { + label: "URL", + help: "활동 대상으로 가는 선택적 딥 링크" + }, + environment_id: { + label: "환경", + help: "환경 컨텍스트(다중 환경 배포)" + }, + metadata: { + label: "메타데이터", + help: "JSON으로 직렬화된 추가 컨텍스트" + }, + changed_fields: { + label: "변경된 필드", + help: "기록된 변경의 키 집합입니다. 수정이면 기록된 이전/새 값이 가리키는 모든 필드이고, 그 밖의 행은 비어 있습니다. 쓰기 시점에 플랫폼이 기록하며, 읽는 사람에게 제공되는 필드로 좁혀서 제공됩니다. NULL은 아직 기록되지 않은 행입니다(`os migrate activity-changed-fields` 실행)." + }, + milestone_key: { + label: "마일스톤 키", + help: "실행된 활동 마일스톤의 경우, 실행 당시 개체의 activityMilestones 선언이 감시하던 모든 필드를 정렬해 쉼표로 이은 하나의 키이며, 그 밖의 행은 NULL입니다. 쓰기 시점에 플랫폼이 기록하고 제공하지 않습니다. 읽기 규칙이 이를 현재 선언과 비교합니다." + } + }, + _views: { + recent: { + label: "최근 활동", + emptyState: { + title: "최근 활동 없음", + message: "레코드에 대한 변경 사항이 최신순으로 여기에 표시됩니다." + } + }, + all: { + label: "모든 항목" + } + } + }, + sys_comment: { + label: "댓글", + pluralLabel: "댓글", + description: "thread_id로 레코드에 연결된 스레드형 댓글", + fields: { + id: { + label: "댓글 ID" + }, + thread_id: { + label: "스레드", + help: "스레드 식별자 — 관례상 `{object}:{record_id}` 형식(예: `account:9001`)" + }, + object_name: { + label: "상위 개체", + help: "`thread_id`가 가리키는 레코드의 개체 — 플랫폼이 기록하며 작성자가 쓰지 않습니다" + }, + record_id: { + label: "상위 레코드", + help: "`thread_id`가 가리키는 레코드의 ID — 플랫폼이 기록하며 작성자가 쓰지 않습니다" + }, + parent_id: { + label: "상위 댓글", + help: "중첩 답글을 위한 선택적 상위 댓글" + }, + author_id: { + label: "작성자" + }, + author_name: { + label: "작성자 이름" + }, + author_avatar_url: { + label: "작성자 아바타" + }, + body: { + label: "본문", + help: "댓글 텍스트(Markdown 지원)" + }, + mentions: { + label: "멘션", + help: "댓글에서 @멘션한 사용자 ID의 JSON 배열" + }, + is_edited: { + label: "편집됨" + }, + edited_at: { + label: "편집 일시" + }, + created_at: { + label: "생성 일시" + }, + updated_at: { + label: "수정 일시" + } + } + }, + sys_comment_reaction: { + label: "댓글 반응", + pluralLabel: "댓글 반응", + description: "댓글에 남긴 이모지 반응으로, 반응한 사용자가 소유합니다", + fields: { + id: { + label: "반응 ID" + }, + comment_id: { + label: "댓글", + help: "이 반응이 달린 sys_comment의 ID입니다. 해당 댓글을 읽을 수 있을 때만 이 반응도 읽을 수 있습니다." + }, + emoji: { + label: "이모지", + help: "클라이언트가 렌더링하는 문자 시퀀스 형태의 이모지(예: 👍)" + }, + user_id: { + label: "사용자", + help: "반응한 사용자입니다. 생성 시 세션에서 기록되며, 클라이언트가 보낸 값은 대체됩니다." + }, + created_at: { + label: "생성 일시" + } + } + } +}; diff --git a/packages/plugins/plugin-audit/src/translations/ko.source-hashes.generated.ts b/packages/plugins/plugin-audit/src/translations/ko.source-hashes.generated.ts new file mode 100644 index 00000000000..cb913680efa --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/ko.source-hashes.generated.ts @@ -0,0 +1,22 @@ +// 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_activity.fields.url.label": "2203b0b9f72534f7", +}; diff --git a/packages/plugins/plugin-audit/src/translations/messages.ts b/packages/plugins/plugin-audit/src/translations/messages.ts index 13a1c9174ae..88ffaa2468a 100644 --- a/packages/plugins/plugin-audit/src/translations/messages.ts +++ b/packages/plugins/plugin-audit/src/translations/messages.ts @@ -57,3 +57,73 @@ export const esESMessages: Messages = { mentionedYou: '{{actor}} te mencionó', mentionedYouAnonymous: 'Te han mencionado', }; + +export const zhHantMessages: Messages = { + activityCreated: '建立了 {{object}}「{{label}}」', + activityUpdated: '更新了 {{object}}「{{label}}」', + activityUpdatedFields: '更新了 {{object}}「{{label}}」:{{fields}}', + activityMoreFields: '另外 {{count}} 個欄位', + activityDeleted: '刪除了 {{object}}「{{label}}」', + mentionedYou: '{{actor}} 提及了你', + mentionedYouAnonymous: '有人提及了你', +}; + +export const arMessages: Messages = { + activityCreated: 'أنشأ {{object}} "{{label}}"', + activityUpdated: 'حدّث {{object}} "{{label}}"', + activityUpdatedFields: 'حدّث {{object}} "{{label}}": {{fields}}', + activityMoreFields: '{{count}} أخرى', + activityDeleted: 'حذف {{object}} "{{label}}"', + mentionedYou: 'أشار إليك {{actor}}', + mentionedYouAnonymous: 'تمت الإشارة إليك', +}; + +export const frMessages: Messages = { + activityCreated: 'A créé {{object}} « {{label}} »', + activityUpdated: 'A modifié {{object}} « {{label}} »', + activityUpdatedFields: 'A modifié {{object}} « {{label}} » : {{fields}}', + activityMoreFields: '{{count}} de plus', + activityDeleted: 'A supprimé {{object}} « {{label}} »', + mentionedYou: '{{actor}} vous a mentionné', + mentionedYouAnonymous: 'Vous avez été mentionné', +}; + +export const ptBRMessages: Messages = { + activityCreated: 'Criou {{object}} "{{label}}"', + activityUpdated: 'Atualizou {{object}} "{{label}}"', + activityUpdatedFields: 'Atualizou {{object}} "{{label}}": {{fields}}', + activityMoreFields: 'mais {{count}}', + activityDeleted: 'Excluiu {{object}} "{{label}}"', + mentionedYou: '{{actor}} mencionou você', + mentionedYouAnonymous: 'Você foi mencionado', +}; + +export const ruMessages: Messages = { + activityCreated: 'Создал(а) {{object}} «{{label}}»', + activityUpdated: 'Изменил(а) {{object}} «{{label}}»', + activityUpdatedFields: 'Изменил(а) {{object}} «{{label}}»: {{fields}}', + activityMoreFields: 'ещё {{count}}', + activityDeleted: 'Удалил(а) {{object}} «{{label}}»', + mentionedYou: '{{actor}} упомянул(а) вас', + mentionedYouAnonymous: 'Вас упомянули', +}; + +export const deMessages: Messages = { + activityCreated: 'Hat {{object}} „{{label}}“ erstellt', + activityUpdated: 'Hat {{object}} „{{label}}“ aktualisiert', + activityUpdatedFields: 'Hat {{object}} „{{label}}“ aktualisiert: {{fields}}', + activityMoreFields: '{{count}} weitere', + activityDeleted: 'Hat {{object}} „{{label}}“ gelöscht', + mentionedYou: '{{actor}} hat Sie erwähnt', + mentionedYouAnonymous: 'Sie wurden erwähnt', +}; + +export const koMessages: Messages = { + activityCreated: '{{object}} "{{label}}"을(를) 만들었습니다', + activityUpdated: '{{object}} "{{label}}"을(를) 수정했습니다', + activityUpdatedFields: '{{object}} "{{label}}"의 {{fields}}을(를) 수정했습니다', + activityMoreFields: '외 {{count}}개', + activityDeleted: '{{object}} "{{label}}"을(를) 삭제했습니다', + mentionedYou: '{{actor}}님이 회원님을 멘션했습니다', + mentionedYouAnonymous: '회원님이 멘션되었습니다', +}; diff --git a/packages/plugins/plugin-audit/src/translations/pt-BR.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/pt-BR.objects.generated.ts new file mode 100644 index 00000000000..4f8c895ab7d --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/pt-BR.objects.generated.ts @@ -0,0 +1,290 @@ +// 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_audit_log: { + label: "Log de auditoria", + pluralLabel: "Logs de auditoria", + description: "Trilha de auditoria imutável dos eventos da plataforma", + fields: { + created_at: { + label: "Data e hora" + }, + action: { + label: "Ação", + help: "Tipo de ação (snake_case)", + options: { + create: "Criação", + read: "Leitura", + update: "Atualização", + delete: "Exclusão", + login: "Acesso", + logout: "Encerramento de sessão", + login_failed: "Falha de acesso", + account_locked: "Conta bloqueada", + config_change: "Alteração de configuração", + import: "Importação", + platform_admin_standing_change: "Alteração do status de administrador da plataforma", + action_invocation: "Invocação de ação" + } + }, + user_id: { + label: "Usuário", + help: "Usuário que realizou a ação (null para ações sem usuário ou de serviço — veja Autor da ação)" + }, + actor: { + label: "Autor da ação", + help: "Principal que realizou a ação: um ID de usuário, svc: ou null" + }, + object_name: { + label: "Objeto", + help: "Objeto de destino (ex.: sys_user, project_task)" + }, + record_id: { + label: "Registro", + help: "ID do registro afetado" + }, + old_value: { + label: "Valor anterior", + help: "Estado anterior serializado em JSON" + }, + new_value: { + label: "Novo valor", + help: "Novo estado serializado em JSON" + }, + ip_address: { + label: "Endereço IP" + }, + user_agent: { + label: "Agente do usuário" + }, + tenant_id: { + label: "Locatário", + help: "Organização a que este evento se refere; vazio para uma ação no nível da implantação" + }, + metadata: { + label: "Metadados", + help: "Contexto adicional serializado em JSON" + }, + id: { + label: "ID do log de auditoria" + } + }, + _views: { + recent: { + label: "Recentes", + emptyState: { + title: "Nenhum evento de auditoria", + message: "A atividade aparecerá aqui conforme os usuários interagirem com a plataforma." + } + }, + writes_only: { + label: "Gravações" + }, + auth_events: { + label: "Autenticação" + }, + record_views: { + label: "Visualizações de registros", + emptyState: { + title: "Nenhuma visualização de registro registrada", + message: "A auditoria de visualização é ativada por objeto. As linhas aparecem aqui quando um objeto é adicionado à lista readAudit.objects do plugin de auditoria e alguém abre um de seus registros." + } + }, + config_changes: { + label: "Configuração" + }, + all_events: { + label: "Todos" + } + } + }, + sys_activity: { + label: "Feed de atividades", + pluralLabel: "Feed de atividades", + description: "O que as pessoas fizeram recentemente nos registros, dos mais novos aos mais antigos: quem criou, alterou ou excluiu o quê. As entradas são mantidas por 14 dias.", + fields: { + id: { + label: "ID da atividade" + }, + timestamp: { + label: "Data e hora" + }, + type: { + label: "Tipo", + help: "Tipo de atividade. As opções declaradas são o conjunto NATIVO da plataforma de um vocabulário aberto, não um enum fechado: autores de metadados podem contribuir com valores próprios (canal oficial: `activityMilestones[].type`, ADR-0052 §5b.2), e um valor não declarado é armazenado literalmente em vez de rejeitado. Os consumidores devem exibir um valor desconhecido em vez de supor que esta lista é exaustiva: o vocabulário é aberto por decisão, não uma lacuna aguardando validação.", + options: { + created: "criado", + updated: "atualizado", + deleted: "excluído", + commented: "comentado", + mentioned: "mencionado", + shared: "compartilhado", + assigned: "atribuído", + completed: "concluído", + scheduled: "agendado", + login: "acesso", + logout: "saída", + system: "sistema" + } + }, + summary: { + label: "Resumo", + help: "Resumo legível em uma linha" + }, + actor_id: { + label: "Autor da ação" + }, + actor_name: { + label: "Nome do autor da ação" + }, + actor_avatar_url: { + label: "Avatar do autor da ação" + }, + object_name: { + label: "Objeto", + help: "Nome curto do objeto de destino (ex.: account, sys_user)" + }, + record_id: { + label: "Registro" + }, + record_label: { + label: "Rótulo do registro", + help: "Rótulo de exibição do registro de destino no momento da gravação" + }, + source_object: { + label: "Objeto de origem", + help: "Nome do objeto da entidade de origem rica da qual esta atividade foi derivada (ex.: \"sys_email\"). Null quando a atividade é sobre o próprio registro de destino." + }, + source_id: { + label: "ID de origem", + help: "ID do registro da entidade de origem rica (pareado com source_object) — permite que a linha do tempo abra o registro completo de e-mail/chamada/reunião." + }, + url: { + label: "URL", + help: "Link direto opcional para o alvo da atividade" + }, + environment_id: { + label: "Ambiente", + help: "Contexto de ambiente (implantações com vários ambientes)" + }, + metadata: { + label: "Metadados", + help: "Contexto adicional serializado em JSON" + }, + changed_fields: { + label: "Campos alterados", + help: "O conjunto de chaves da alteração registrada: em uma atualização, todos os campos citados pelos valores antigos/novos registrados; vazio para as demais linhas. Gravado pela plataforma no momento da escrita; servido restrito aos campos que o leitor pode ver. NULL significa que a linha ainda não foi marcada (execute `os migrate activity-changed-fields`)." + }, + milestone_key: { + label: "Chave do marco", + help: "Para um marco de atividade disparado, uma chave ordenada e unida por vírgulas de todos os campos que a declaração activityMilestones do objeto observava quando disparou; NULL para as demais linhas. Gravada pela plataforma no momento da escrita e nunca servida: a regra de leitura a compara com a declaração atual." + } + }, + _views: { + recent: { + label: "Atividade recente", + emptyState: { + title: "Nenhuma atividade recente", + message: "As alterações feitas nos registros aparecem aqui, das mais recentes às mais antigas." + } + }, + all: { + label: "Todas as entradas" + } + } + }, + sys_comment: { + label: "Comentário", + pluralLabel: "Comentários", + description: "Comentários em conversa anexados a registros por thread_id", + fields: { + id: { + label: "ID do comentário" + }, + thread_id: { + label: "Conversa", + help: "Identificador da conversa — por convenção `{object}:{record_id}` (ex.: `account:9001`)" + }, + object_name: { + label: "Objeto pai", + help: "O objeto do registro indicado por `thread_id` — gravado pela plataforma, nunca pelos autores" + }, + record_id: { + label: "Registro pai", + help: "O ID do registro indicado por `thread_id` — gravado pela plataforma, nunca pelos autores" + }, + parent_id: { + label: "Comentário pai", + help: "Comentário pai opcional para respostas aninhadas" + }, + author_id: { + label: "Autor" + }, + author_name: { + label: "Nome do autor" + }, + author_avatar_url: { + label: "Avatar do autor" + }, + body: { + label: "Corpo", + help: "Texto do comentário (Markdown aceito)" + }, + mentions: { + label: "Menções", + help: "Array JSON dos IDs de usuários @mencionados no comentário" + }, + is_edited: { + label: "Editado" + }, + edited_at: { + label: "Editado em" + }, + created_at: { + label: "Criado em" + }, + updated_at: { + label: "Atualizado em" + } + } + }, + sys_comment_reaction: { + label: "Reação ao comentário", + pluralLabel: "Reações aos comentários", + description: "Uma reação com emoji a um comentário, pertencente ao usuário que reagiu", + fields: { + id: { + label: "ID da reação" + }, + comment_id: { + label: "Comentário", + help: "O ID do sys_comment desta reação. A reação pode ser lida exatamente quando esse comentário pode." + }, + emoji: { + label: "Emoji", + help: "O emoji, como a sequência de caracteres que o cliente exibe (por exemplo, 👍)" + }, + user_id: { + label: "Usuário", + help: "O usuário que reagiu. Gravado a partir da sessão na criação; um valor enviado pelo cliente é substituído." + }, + created_at: { + label: "Criado em" + } + } + } +}; diff --git a/packages/plugins/plugin-audit/src/translations/pt-BR.source-hashes.generated.ts b/packages/plugins/plugin-audit/src/translations/pt-BR.source-hashes.generated.ts new file mode 100644 index 00000000000..3e52f4d2080 --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/pt-BR.source-hashes.generated.ts @@ -0,0 +1,23 @@ +// 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_activity.fields.url.label": "2203b0b9f72534f7", + "objects.sys_comment_reaction.fields.emoji.label": "f281bddefc11042a", +}; diff --git a/packages/plugins/plugin-audit/src/translations/ru.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/ru.objects.generated.ts new file mode 100644 index 00000000000..64ddfbc63c0 --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/ru.objects.generated.ts @@ -0,0 +1,290 @@ +// 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_audit_log: { + label: "Журнал аудита", + pluralLabel: "Журналы аудита", + description: "Неизменяемый журнал аудита событий платформы", + fields: { + created_at: { + label: "Время" + }, + action: { + label: "Действие", + help: "Тип действия (snake_case)", + options: { + create: "Создание", + read: "Чтение", + update: "Обновление", + delete: "Удаление", + login: "Вход", + logout: "Выход", + login_failed: "Неудачный вход", + account_locked: "Учётная запись заблокирована", + config_change: "Изменение конфигурации", + import: "Импорт", + platform_admin_standing_change: "Изменение статуса администратора платформы", + action_invocation: "Вызов действия" + } + }, + user_id: { + label: "Пользователь", + help: "Пользователь, выполнивший действие (null для действий не от пользователя или служб — см. «Исполнитель»)" + }, + actor: { + label: "Исполнитель", + help: "Субъект, выполнивший действие: ID пользователя, svc: или null" + }, + object_name: { + label: "Объект", + help: "Целевой объект (например, sys_user, project_task)" + }, + record_id: { + label: "Запись", + help: "ID затронутой записи" + }, + old_value: { + label: "Старое значение", + help: "Предыдущее состояние, сериализованное в JSON" + }, + new_value: { + label: "Новое значение", + help: "Новое состояние, сериализованное в JSON" + }, + ip_address: { + label: "IP-адрес" + }, + user_agent: { + label: "User-Agent" + }, + tenant_id: { + label: "Арендатор", + help: "Организация, к которой относится событие; пусто для действия уровня развёртывания" + }, + metadata: { + label: "Метаданные", + help: "Дополнительный контекст, сериализованный в JSON" + }, + id: { + label: "ID записи аудита" + } + }, + _views: { + recent: { + label: "Недавние", + emptyState: { + title: "Нет событий аудита", + message: "Активность появится здесь, когда пользователи начнут работать с платформой." + } + }, + writes_only: { + label: "Записи" + }, + auth_events: { + label: "Аутентификация" + }, + record_views: { + label: "Просмотры записей", + emptyState: { + title: "Просмотры записей не зарегистрированы", + message: "Аудит просмотров включается для каждого объекта отдельно. Строки появятся здесь, когда объект будет добавлен в список readAudit.objects плагина аудита и кто-то откроет одну из его записей." + } + }, + config_changes: { + label: "Конфигурация" + }, + all_events: { + label: "Все" + } + } + }, + sys_activity: { + label: "Лента активности", + pluralLabel: "Лента активности", + description: "Что люди недавно делали с записями, сначала новые: кто что создал, изменил или удалил. Записи хранятся 14 дней.", + fields: { + id: { + label: "ID активности" + }, + timestamp: { + label: "Время" + }, + type: { + label: "Тип", + help: "Вид активности. Объявленные варианты — ВСТРОЕННЫЙ в платформу набор открытого словаря, а не закрытое перечисление: авторы метаданных могут добавлять свои значения (утверждённый канал: `activityMilestones[].type`, ADR-0052 §5b.2), а необъявленное значение сохраняется как есть, а не отклоняется. Потребители должны отображать неизвестное значение, а не считать этот список исчерпывающим: словарь открыт намеренно, это не пробел, ожидающий проверки.", + options: { + created: "создано", + updated: "изменено", + deleted: "удалено", + commented: "прокомментировано", + mentioned: "упоминание", + shared: "предоставлен доступ", + assigned: "назначено", + completed: "завершено", + scheduled: "запланировано", + login: "вход", + logout: "выход", + system: "система" + } + }, + summary: { + label: "Сводка", + help: "Понятная человеку сводка в одну строку" + }, + actor_id: { + label: "Исполнитель" + }, + actor_name: { + label: "Имя исполнителя" + }, + actor_avatar_url: { + label: "Аватар исполнителя" + }, + object_name: { + label: "Объект", + help: "Краткое имя целевого объекта (например, account, sys_user)" + }, + record_id: { + label: "Запись" + }, + record_label: { + label: "Метка записи", + help: "Отображаемая метка целевой записи на момент записи" + }, + source_object: { + label: "Объект-источник", + help: "Имя объекта насыщенной сущности-источника, из которой получена эта активность (например, \"sys_email\"). Null, если активность относится к самой целевой записи." + }, + source_id: { + label: "ID источника", + help: "ID записи насыщенной сущности-источника (в паре с source_object) — позволяет из ленты перейти к полной записи письма, звонка или встречи." + }, + url: { + label: "URL", + help: "Необязательная прямая ссылка на цель активности" + }, + environment_id: { + label: "Среда", + help: "Контекст среды (развёртывания с несколькими средами)" + }, + metadata: { + label: "Метаданные", + help: "Дополнительный контекст, сериализованный в JSON" + }, + changed_fields: { + label: "Изменённые поля", + help: "Набор ключей записанного изменения: для обновления — каждое поле, названное в записанных старых/новых значениях; для остальных строк — пусто. Проставляется платформой при записи; отдаётся только с теми полями, которые доступны читателю. NULL означает, что строка ещё не помечена (выполните `os migrate activity-changed-fields`)." + }, + milestone_key: { + label: "Ключ вехи", + help: "Для сработавшей вехи активности — один отсортированный ключ через запятую из всех полей, за которыми следило объявление activityMilestones объекта в момент срабатывания; для остальных строк — NULL. Проставляется платформой при записи и никогда не отдаётся: правило чтения сравнивает его с текущим объявлением." + } + }, + _views: { + recent: { + label: "Недавняя активность", + emptyState: { + title: "Нет недавней активности", + message: "Здесь появляются изменения записей, сначала новые." + } + }, + all: { + label: "Все записи" + } + } + }, + sys_comment: { + label: "Комментарий", + pluralLabel: "Комментарии", + description: "Комментарии в виде обсуждений, привязанные к записям через thread_id", + fields: { + id: { + label: "ID комментария" + }, + thread_id: { + label: "Обсуждение", + help: "Идентификатор обсуждения — по соглашению `{object}:{record_id}` (например, `account:9001`)" + }, + object_name: { + label: "Родительский объект", + help: "Объект записи, на которую указывает `thread_id`, — проставляется платформой, авторы его не заполняют" + }, + record_id: { + label: "Родительская запись", + help: "ID записи, на которую указывает `thread_id`, — проставляется платформой, авторы его не заполняют" + }, + parent_id: { + label: "Родительский комментарий", + help: "Необязательный родительский комментарий для вложенных ответов" + }, + author_id: { + label: "Автор" + }, + author_name: { + label: "Имя автора" + }, + author_avatar_url: { + label: "Аватар автора" + }, + body: { + label: "Текст", + help: "Текст комментария (поддерживается Markdown)" + }, + mentions: { + label: "Упоминания", + help: "JSON-массив ID пользователей, @упомянутых в комментарии" + }, + is_edited: { + label: "Изменён" + }, + edited_at: { + label: "Изменено" + }, + created_at: { + label: "Создано" + }, + updated_at: { + label: "Обновлено" + } + } + }, + sys_comment_reaction: { + label: "Реакция на комментарий", + pluralLabel: "Реакции на комментарии", + description: "Реакция эмодзи на комментарий; принадлежит пользователю, который её оставил", + fields: { + id: { + label: "ID реакции" + }, + comment_id: { + label: "Комментарий", + help: "ID sys_comment, к которому относится реакция. Реакция доступна для чтения ровно тогда, когда доступен этот комментарий." + }, + emoji: { + label: "Эмодзи", + help: "Эмодзи в виде последовательности символов, которую отображает клиент (например, 👍)" + }, + user_id: { + label: "Пользователь", + help: "Пользователь, оставивший реакцию. Проставляется из сеанса при создании; значение от клиента заменяется." + }, + created_at: { + label: "Создано" + } + } + } +}; diff --git a/packages/plugins/plugin-audit/src/translations/ru.source-hashes.generated.ts b/packages/plugins/plugin-audit/src/translations/ru.source-hashes.generated.ts new file mode 100644 index 00000000000..58f1b531fcd --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/ru.source-hashes.generated.ts @@ -0,0 +1,22 @@ +// 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_activity.fields.url.label": "2203b0b9f72534f7", +}; diff --git a/packages/plugins/plugin-audit/src/translations/zh-Hant.objects.generated.ts b/packages/plugins/plugin-audit/src/translations/zh-Hant.objects.generated.ts new file mode 100644 index 00000000000..ddb813ff12c --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/zh-Hant.objects.generated.ts @@ -0,0 +1,290 @@ +// 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_audit_log: { + label: "稽核日誌", + pluralLabel: "稽核日誌", + description: "平台事件不可變更的稽核軌跡", + fields: { + created_at: { + label: "時間戳記" + }, + action: { + label: "操作", + help: "操作類型(snake_case)", + options: { + create: "建立", + read: "檢視", + update: "更新", + delete: "刪除", + login: "登入", + logout: "登出", + login_failed: "登入失敗", + account_locked: "帳戶已鎖定", + config_change: "設定變更", + import: "匯入", + platform_admin_standing_change: "平台管理員權限變更", + action_invocation: "動作呼叫" + } + }, + user_id: { + label: "使用者", + help: "執行此操作的使用者(非使用者/服務操作時為 null——請參閱執行者)" + }, + actor: { + label: "執行者", + help: "執行此操作的主體:使用者 ID、svc: 或 null" + }, + object_name: { + label: "物件", + help: "目標物件(例如 sys_user、project_task)" + }, + record_id: { + label: "記錄", + help: "受影響記錄的 ID" + }, + old_value: { + label: "舊值", + help: "先前狀態的 JSON 序列化結果" + }, + new_value: { + label: "新值", + help: "新狀態的 JSON 序列化結果" + }, + ip_address: { + label: "IP 位址" + }, + user_agent: { + label: "使用者代理程式" + }, + tenant_id: { + label: "租用戶", + help: "此事件所涉及的組織;部署層級的操作則為空" + }, + metadata: { + label: "中繼資料", + help: "附加內容的 JSON 序列化結果" + }, + id: { + label: "稽核日誌 ID" + } + }, + _views: { + recent: { + label: "最近", + emptyState: { + title: "尚無稽核事件", + message: "使用者與平台互動後,動態會顯示在這裡。" + } + }, + writes_only: { + label: "寫入" + }, + auth_events: { + label: "驗證" + }, + record_views: { + label: "記錄檢視", + emptyState: { + title: "尚無記錄檢視紀錄", + message: "記錄檢視稽核需依物件啟用。將物件加入稽核外掛程式的 readAudit.objects 清單後,有人開啟其記錄時便會顯示在這裡。" + } + }, + config_changes: { + label: "設定" + }, + all_events: { + label: "全部" + } + } + }, + sys_activity: { + label: "動態", + pluralLabel: "動態", + description: "最近大家對記錄做了什麼,依時間由新到舊:誰新增、修改或刪除了什麼。項目保留 14 天。", + fields: { + id: { + label: "動態 ID" + }, + timestamp: { + label: "時間戳記" + }, + type: { + label: "類型", + help: "動態種類。宣告的選項是開放詞彙中平台內建的一組,而非封閉列舉:中繼資料作者可以加入自己的值(認可管道:`activityMilestones[].type`,ADR-0052 §5b.2),未宣告的值會依原樣儲存而不會被拒絕。使用方必須呈現未知值,而非假設此清單已窮舉:詞彙開放是刻意的決定,不是等待強制的缺口。", + options: { + created: "已建立", + updated: "已更新", + deleted: "已刪除", + commented: "已留言", + mentioned: "被提及", + shared: "已共用", + assigned: "已指派", + completed: "已完成", + scheduled: "已排程", + login: "登入", + logout: "登出", + system: "系統" + } + }, + summary: { + label: "摘要", + help: "人類可讀的單行摘要" + }, + actor_id: { + label: "執行者" + }, + actor_name: { + label: "執行者名稱" + }, + actor_avatar_url: { + label: "執行者頭像" + }, + object_name: { + label: "物件", + help: "目標物件短名稱(例如 account、sys_user)" + }, + record_id: { + label: "記錄" + }, + record_label: { + label: "記錄標籤", + help: "寫入當時目標記錄的顯示標籤" + }, + source_object: { + label: "來源物件", + help: "此動態所衍生自之豐富來源實體的物件名稱(例如 \"sys_email\")。動態針對目標記錄本身時為 null。" + }, + source_id: { + label: "來源 ID", + help: "豐富來源實體的記錄 ID(與 source_object 配對)——讓時間軸可以向下切入完整的郵件/通話/會議記錄。" + }, + url: { + label: "URL", + help: "指向動態目標的選用深層連結" + }, + environment_id: { + label: "環境", + help: "環境內容(多環境部署)" + }, + metadata: { + label: "中繼資料", + help: "附加內容的 JSON 序列化結果" + }, + changed_fields: { + label: "變更欄位", + help: "所記錄變更的鍵集合:對於更新,為其記錄的舊值/新值所提及的每個欄位;其他列為空。由平台在寫入時標記;回傳時僅保留讀者可見的欄位。NULL 表示該列尚未標記(請執行 `os migrate activity-changed-fields`)。" + }, + milestone_key: { + label: "里程碑鍵", + help: "對於已觸發的活動里程碑,為該物件 activityMilestones 宣告在觸發時所監看之所有欄位的排序、逗號串接鍵;其他列為 NULL。由平台在寫入時標記且從不回傳:讀取規則會將其與目前宣告比較。" + } + }, + _views: { + recent: { + label: "最近動態", + emptyState: { + title: "尚無最近動態", + message: "大家對記錄所做的變更會依時間由新到舊顯示在這裡。" + } + }, + all: { + label: "全部項目" + } + } + }, + sys_comment: { + label: "留言", + pluralLabel: "留言", + description: "透過 thread_id 附加到記錄的串接留言", + fields: { + id: { + label: "留言 ID" + }, + thread_id: { + label: "討論串", + help: "討論串識別碼——慣例格式為 `{object}:{record_id}`(例如 `account:9001`)" + }, + object_name: { + label: "父物件", + help: "`thread_id` 指向之記錄所屬的物件——由平台寫入,作者不可填寫" + }, + record_id: { + label: "父記錄", + help: "`thread_id` 指向之記錄的 ID——由平台寫入,作者不可填寫" + }, + parent_id: { + label: "父留言", + help: "巢狀回覆的選用父留言" + }, + author_id: { + label: "作者" + }, + author_name: { + label: "作者名稱" + }, + author_avatar_url: { + label: "作者頭像" + }, + body: { + label: "內文", + help: "留言文字(支援 Markdown)" + }, + mentions: { + label: "提及", + help: "留言中被 @ 提及的使用者 ID 的 JSON 陣列" + }, + is_edited: { + label: "已編輯" + }, + edited_at: { + label: "編輯時間" + }, + created_at: { + label: "建立時間" + }, + updated_at: { + label: "更新時間" + } + } + }, + sys_comment_reaction: { + label: "留言回應", + pluralLabel: "留言回應", + description: "對留言的表情符號回應,歸做出回應的使用者所有", + fields: { + id: { + label: "回應 ID" + }, + comment_id: { + label: "留言", + help: "此回應所屬 sys_comment 的 ID。只有在該留言可讀時,此回應才可讀。" + }, + emoji: { + label: "表情符號", + help: "表情符號,即用戶端呈現的字元序列(例如 👍)" + }, + user_id: { + label: "使用者", + help: "做出回應的使用者。建立時從工作階段寫入;用戶端提供的值會被取代。" + }, + created_at: { + label: "建立時間" + } + } + } +}; diff --git a/packages/plugins/plugin-audit/src/translations/zh-Hant.source-hashes.generated.ts b/packages/plugins/plugin-audit/src/translations/zh-Hant.source-hashes.generated.ts new file mode 100644 index 00000000000..b1a599d34c4 --- /dev/null +++ b/packages/plugins/plugin-audit/src/translations/zh-Hant.source-hashes.generated.ts @@ -0,0 +1,22 @@ +// 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_activity.fields.url.label": "2203b0b9f72534f7", +};