Skip to content

Commit 334e7d6

Browse files
committed
refactor: πŸ’‘ move translation to resources for user
This moves the User detail action translation to resources/en-us.yaml since it is specific to the user resource and is not a generic form action. βœ… Closes: FE-112
1 parent f7082ea commit 334e7d6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

β€Žaddons/core/translations/actions/en-us.yamlβ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ add-hosts: Add Hosts
3838
set-password: Set Password
3939
change-password: Change Password
4040
edit-form: Edit Form
41-
edit-user-details:
42-
button-text: Edit User details
43-
aria-label: 'edit form: users'
4441
change-cluster-url: Change Cluster URL
4542
change-state: Change State
4643
close: Close

β€Žaddons/core/translations/resources/en-us.yamlβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,10 @@ user:
570570
actions:
571571
add-accounts: Add Accounts
572572
delete: Delete User
573+
edit-details:
574+
button:
575+
text: Edit User details
576+
aria-label: 'edit form: users'
573577
role:
574578
title: Role
575579
title_plural: Roles

β€Žui/admin/app/components/form/user/index.hbsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252

5353
{{#if (can 'save model' @model)}}
5454
<form.actions
55-
@enableEditText={{t 'actions.edit-user-details.button-text'}}
56-
aria-label={{t 'actions.edit-user-details.aria-label'}}
55+
@enableEditText={{t 'resources.user.actions.edit-details.button.text'}}
56+
aria-label={{t 'resources.user.actions.edit-details.button.aria-label'}}
5757
@submitText={{t 'actions.save'}}
5858
@cancelText={{t 'actions.cancel'}}
5959
/>

0 commit comments

Comments
Β (0)