refactor: 💡 move account-related translations

This commit is contained in:
Randall Morey committed 2020-09-22 17:42:47 -04:00
1 parent eac4ebe2db
commit e0f053113a
9 files changed
+23 -23

No files matched your search

@@ -6,7 +6,7 @@
as |form|
>
<form.input
@value={{t (concat 'account.types.' @model.type)}}
@value={{t (concat 'resources.account.types.' @model.type)}}
@label={{t "form.type.label"}}
readonly={{true}}
@disabled={{true}} />
@@ -13,6 +13,6 @@ export default class ScopesScopeAuthMethodsAuthMethodAccountsController extends
* @type {string}
*/
get breadCrumb() {
return this.intl.t('resources.accounts');
return this.intl.t('resources.account.title_plural');
}
}
@@ -3,6 +3,6 @@
{{t 'titles.details'}}
</nav.link>
<nav.link @route='scopes.scope.auth-methods.auth-method.accounts'>
{{t 'titles.accounts'}}
{{t 'resources.account.title_plural'}}
</nav.link>
</Rose::Nav::Tabs>
</Rose::Nav::Tabs>
@@ -1,3 +1,3 @@
{{title (t 'titles.accounts')}}
{{title (t 'resources.account.title_plural')}}
{{outlet}}
@@ -1 +1 @@
<h2>{{t "resources.account"}}</h2>
<h2>{{t "resources.account.title"}}</h2>
@@ -1,2 +1,2 @@
<h2>{{t "resources.account"}}</h2>
<p>{{t 'descriptions.account-set-password'}}</p>
<h2>{{t "resources.account.title"}}</h2>
<p>{{t 'resources.account.messages.set-password.description'}}</p>
@@ -34,11 +34,11 @@
{{else}}
<Rose::Layout::Centered>
<Rose::Message @title={{t "titles.accounts-welcome"}} as |message|>
<Rose::Message @title={{t "resources.account.messages.welcome.title"}} as |message|>
<message.description>
{{t "descriptions.accounts-welcome"}}
{{t "resources.account.messages.welcome.description"}}
</message.description>
</Rose::Message>
</Rose::Layout::Centered>
{{/if}}
{{/if}}
-8
View File
@@ -18,9 +18,6 @@ target:
host:
types:
static: Static
account:
types:
password: Password
titles:
iam: IAM
new: New
@@ -55,9 +52,6 @@ titles:
members: Members
group-members-welcome: Welcome to Members
no-available-users: No Users Available
accounts: Accounts
account: Account
accounts-welcome: Welcome to Accounts
no-sessions: No Active Sessions
actions: Actions
descriptions:
@@ -80,6 +74,4 @@ descriptions:
no-principals-available: Principals are not available for assignment.
group-members-welcome: Users belonging to this group appear here.
no-available-users: No users are available to add to this group.
account-set-password: Set a password for the account.
accounts-welcome: No accounts are available in this auth method.
no-sessions: There are no active sessions at this time.
+12 -4
View File
@@ -1,3 +1,15 @@
account:
title: Account
title_plural: Accounts
description: Accounts associate an IAM user with an auth method
messages:
welcome:
title: Welcome to Accounts
description: Create and manage accounts for an auth method.
set-password:
description: Set a password for the account.
types:
password: Password
user: User
users: Users
role: Role
@@ -18,8 +30,6 @@ host: Host
hosts: Hosts
target: Target
targets: Targets
accounts: Accounts
account: Account
sessions: Sessions
session: Session
descriptions:
@@ -45,7 +55,5 @@ descriptions:
hosts: A host is a computing element with a network address reachable from Boundary. A Host belongs to one and only one Host Catalog. A Host can be contained by zero or more Host Sets. The lifecycle of a Host is not tied to the lifecycle of any Host Sets.
target: Target is abstract. A Target is deleted when the Scope it belongs to is deleted.
targets: A target is a networked service a User can connect to and interact with through Boundary. A Target does not directly contain any secrets. A Target contains a collection of Hosts. A Target belongs to one and only one Scope. A Target can contain zero or more Host Sets. The lifecycle of a Target is not tied to the lifecycle of any Host Set.
accounts: Accounts
account: Account
sessions: Sessions
session: Session