diff --git a/.changeset/sys-position-bundle-locales-per-organization.md b/.changeset/sys-position-bundle-locales-per-organization.md new file mode 100644 index 0000000000..3f7a188ddf --- /dev/null +++ b/.changeset/sys-position-bundle-locales-per-organization.md @@ -0,0 +1,14 @@ +--- +"@objectstack/plugin-security": patch +--- + +Correct `sys_position`'s translated uniqueness text in the `es-ES`, `ja-JP` and `zh-CN` bundles to say the machine name is unique **per organization** + +The English bundle and the object source both already state that a position's machine name is unique per organization — the declared index is `{ fields: ['name'], unique: 'organization' }`. The three other shipped locales still asserted bare, unqualified uniqueness, so an admin reading Setup in Spanish, Japanese or Chinese was told the name had to be free installation-wide, which the declared index does not enforce. + +Both places `sys_position` states the rule are corrected: + +- `fields.name.help`, the field help in the object's detail and edit views. It now also carries the source's current examples (`sales_manager`, `hr_specialist` rather than the superseded `admin`, `editor`, `viewer`). +- `actions.clone_position.params.name.helpText`, the help on the Clone Position dialog's API-name input — the text an admin reads at the moment they type a new name. + +Leaf string values only — no bundle structure was hand-edited. diff --git a/packages/plugins/plugin-security/src/translations/es-ES.objects.generated.ts b/packages/plugins/plugin-security/src/translations/es-ES.objects.generated.ts index 9cf0076fe5..21556f3328 100644 --- a/packages/plugins/plugin-security/src/translations/es-ES.objects.generated.ts +++ b/packages/plugins/plugin-security/src/translations/es-ES.objects.generated.ts @@ -19,7 +19,7 @@ export const esESObjects: NonNullable = { }, name: { label: "Nombre de API", - help: "Nombre técnico único del puesto (p. ej. admin, editor, viewer)." + help: "Nombre técnico del puesto, único por organización (p. ej. sales_manager, hr_specialist)." }, description: { label: "Descripción" @@ -96,7 +96,7 @@ export const esESObjects: NonNullable = { }, name: { label: "Nuevo nombre de API", - helpText: "Nombre de máquina snake_case único" + helpText: "Nombre de máquina snake_case, único por organización" } } } diff --git a/packages/plugins/plugin-security/src/translations/ja-JP.objects.generated.ts b/packages/plugins/plugin-security/src/translations/ja-JP.objects.generated.ts index 40348de3e6..1bc4556e15 100644 --- a/packages/plugins/plugin-security/src/translations/ja-JP.objects.generated.ts +++ b/packages/plugins/plugin-security/src/translations/ja-JP.objects.generated.ts @@ -19,7 +19,7 @@ export const jaJPObjects: NonNullable = { }, name: { label: "API 名", - help: "ポジションの一意の機械名(例: admin、editor、viewer)" + help: "ポジションのマシン名(組織ごとに一意。例: sales_manager、hr_specialist)" }, description: { label: "説明" @@ -96,7 +96,7 @@ export const jaJPObjects: NonNullable = { }, name: { label: "新しい API 名", - helpText: "一意の snake_case マシン名" + helpText: "snake_case マシン名(組織ごとに一意)" } } } diff --git a/packages/plugins/plugin-security/src/translations/zh-CN.objects.generated.ts b/packages/plugins/plugin-security/src/translations/zh-CN.objects.generated.ts index 9ffe5ddeaa..a3d94f928e 100644 --- a/packages/plugins/plugin-security/src/translations/zh-CN.objects.generated.ts +++ b/packages/plugins/plugin-security/src/translations/zh-CN.objects.generated.ts @@ -19,7 +19,7 @@ export const zhCNObjects: NonNullable = { }, name: { label: "API 名称", - help: "岗位的唯一机器名称(例如 admin、editor、viewer)" + help: "岗位的机器名称,在每个组织内唯一(例如 sales_manager、hr_specialist)" }, description: { label: "描述" @@ -96,7 +96,7 @@ export const zhCNObjects: NonNullable = { }, name: { label: "新 API 名称", - helpText: "唯一的 snake_case 机器名称" + helpText: "snake_case 机器名称,在每个组织内唯一" } } }