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
14 changes: 14 additions & 0 deletions .changeset/sys-position-bundle-locales-per-organization.md
Original file line numberDiff line numberDiff line change
@@ -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.
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,7 +19,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
},
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"
Expand DownExpand Up@@ -96,7 +96,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
},
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"
}
}
}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,7 +19,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
},
name: {
label: "API 名",
help: "ポジションの一意の機械名(例: admin、editor、viewer)"
help: "ポジションのマシン名(組織ごとに一意。例: sales_manager、hr_specialist)"
},
description: {
label: "説明"
Expand DownExpand Up@@ -96,7 +96,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
},
name: {
label: "新しい API 名",
helpText: "一意の snake_case マシン名"
helpText: "snake_case マシン名(組織ごとに一意)"
}
}
}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,7 +19,7 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
},
name: {
label: "API 名称",
help: "岗位的唯一机器名称(例如 admin、editor、viewer)"
help: "岗位的机器名称,在每个组织内唯一(例如 sales_manager、hr_specialist)"
},
description: {
label: "描述"
Expand DownExpand Up@@ -96,7 +96,7 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
},
name: {
label: "新 API 名称",
helpText: "唯一的 snake_case 机器名称"
helpText: "snake_case 机器名称,在每个组织内唯一"
}
}
}
Expand Down
Loading