Skip to content

Commit 3f92bcd

Browse files
committed
chore(i18n): regenerate the en bundles for the labelled Setup options
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUKVainSF9Fx4YDaSPyE64
1 parent 4f2eb82 commit 3f92bcd

3 files changed

Lines changed: 29 additions & 13 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
'@objectstack/plugin-sharing': patch
4+
'@objectstack/spec': patch
5+
---
6+
7+
fix: Setup forms show option labels instead of machine values on Business Units, Sharing Rules and Datasources
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
- **`@objectstack/platform-objects`:** `sys_business_unit.kind` declared its options as bare strings, so each label equalled its stored value and the form offered `cost_center`. The options now carry labels (Company, Division, Department, Office, Cost Center). The stored values are unchanged.
13+
- **`@objectstack/plugin-sharing`:** `sys_sharing_rule.recipient_type` and `access_level` declared bare-string options too. They now carry labels (User, Team, Business unit, Position, Business unit and subordinates, Field; Read, Read and edit), which are the names the Recipient Type help text already used. The stored values are unchanged.
14+
- **`@objectstack/spec`:** the `autoMigrate` key of the SQLite, PostgreSQL and MySQL driver configs had no JSON-Schema `title`, so the New datasource form labelled the field with the raw key `autoMigrate`. It is now titled "Auto-migrate schema".
15+
16+
The English labels flow into the generated translation bundles; the existing zh-CN, ja-JP and es-ES option translations are kept.

‎packages/platform-objects/src/apps/translations/en.objects.generated.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,11 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
921921
label: "Kind",
922922
help: "Categorisation hint — does not change graph semantics.",
923923
options: {
924-
company: "company",
925-
division: "division",
926-
department: "department",
927-
office: "office",
928-
cost_center: "cost_center"
924+
company: "Company",
925+
division: "Division",
926+
department: "Department",
927+
office: "Office",
928+
cost_center: "Cost Center"
929929
}
930930
},
931931
parent_business_unit_id: {

‎packages/plugins/plugin-sharing/src/translations/en.objects.generated.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
137137
label: "Recipient Type",
138138
help: "Who receives access. Picking a team, business unit or position gives access to everyone in it. \"Business unit and subordinates\" also covers every unit below the one you pick. \"Field\" shares each record with the user or users held in one of its own fields — name that field as the recipient.",
139139
options: {
140-
user: "user",
141-
team: "team",
142-
business_unit: "business_unit",
143-
position: "position",
144-
unit_and_subordinates: "unit_and_subordinates",
145-
field: "field"
140+
user: "User",
141+
team: "Team",
142+
business_unit: "Business unit",
143+
position: "Position",
144+
unit_and_subordinates: "Business unit and subordinates",
145+
field: "Field"
146146
}
147147
},
148148
recipient_id: {
@@ -153,8 +153,8 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
153153
label: "Access Level",
154154
help: "What the recipients may do with the matching records — read them, or read and edit them.",
155155
options: {
156-
read: "read",
157-
edit: "edit"
156+
read: "Read",
157+
edit: "Read and edit"
158158
}
159159
},
160160
active: {

0 commit comments

Comments
 (0)