translate create dialog headline and description

This commit is contained in:
Mads Rasmussen
2024-09-05 15:20:30 +02:00
parent b98de68e27
commit 6ed3b9eb83
3 changed files with 13 additions and 5 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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>