translate create dialog headline and description
This commit is contained in:
@@ -1831,6 +1831,9 @@ export default {
|
||||
administrators: 'Administrator',
|
||||
categoryField: 'Kategorifelt',
|
||||
createDate: 'Bruger oprettet',
|
||||
createUserHeadline: (kind: string) => {
|
||||
return kind === 'Api' ? 'Opret API bruger' : 'Opret bruger';
|
||||
},
|
||||
changePassword: 'Skift dit kodeord',
|
||||
changePhoto: 'Skift billede',
|
||||
newPassword: 'Nyt kodeord',
|
||||
|
||||
@@ -1840,6 +1840,14 @@ export default {
|
||||
administrators: 'Administrator',
|
||||
categoryField: 'Category field',
|
||||
createDate: 'Created',
|
||||
createUserHeadline: (kind: string) => {
|
||||
return kind === 'Api' ? 'Create API user' : 'Create user';
|
||||
},
|
||||
createUserDescription: (kind: string) => {
|
||||
const defaultUserText = `Create a user to give them access to Umbraco. When a user is created a password will be generated that you can share with them.`;
|
||||
const apiUserText = `Create an Api User to allow external services to authenticate with the Umbraco Management API.`;
|
||||
return kind === 'Api' ? apiUserText : defaultUserText;
|
||||
},
|
||||
changePassword: 'Change password',
|
||||
changePhoto: 'Change photo',
|
||||
configureMfa: 'Configure MFA',
|
||||
|
||||
@@ -81,11 +81,8 @@ export class UmbCreateUserModalElement extends UmbModalBaseElement<UmbCreateUser
|
||||
}
|
||||
|
||||
override render() {
|
||||
return html`<uui-dialog-layout headline="Create user">
|
||||
<p>
|
||||
Create new users to give them access to Umbraco. When a user is created a password will be generated that you
|
||||
can share with the user.
|
||||
</p>
|
||||
return html`<uui-dialog-layout headline=${this.localize.term('user_createUserHeadline', this.data?.user.kind)}>
|
||||
<p>${this.localize.term('user_createUserDescription', this.data?.user.kind)}</p>
|
||||
|
||||
${this.#renderForm()}
|
||||
<uui-button @click=${this._rejectModal} slot="actions" label="Cancel" look="secondary"></uui-button>
|
||||
|
||||
Reference in New Issue
Block a user