Merge pull request #1997 from prjseal/fix/ps/no-languages-message

added friendly message to display when there are no other languages t…
This commit is contained in:
Sebastiaan Janssen
2024-06-14 11:51:03 +02:00
committed by GitHub
3 changed files with 6 additions and 2 deletions

View File

@@ -1038,6 +1038,7 @@ export default {
language: {
cultureCode: 'Culture Code',
displayName: 'Culture Name',
noFallbackLanguages: 'There are no other languages to choose from',
},
lockout: {
lockoutWillOccur: "You've been idle and logout will automatically occur in",

View File

@@ -1057,6 +1057,7 @@ export default {
language: {
cultureCode: 'Culture Code',
displayName: 'Culture Name',
noFallbackLanguages: 'There are no other languages to choose from',
},
lockout: {
lockoutWillOccur: "You've been idle and logout will automatically occur in",

View File

@@ -51,7 +51,7 @@ export class UmbLanguagePickerModalElement extends UmbModalBaseElement<
render() {
return html`<umb-body-layout headline="Select languages">
<uui-box>
${repeat(
${this.#filteredLanguages.length > 0 ? repeat(
this.#filteredLanguages,
(item) => item.unique,
(item) => html`
@@ -64,7 +64,9 @@ export class UmbLanguagePickerModalElement extends UmbModalBaseElement<
<uui-icon slot="icon" name="icon-globe"></uui-icon>
</uui-menu-item>
`,
)}
) : html`<umb-localize key="language_noFallbackLanguages">
There are no other languages to choose from
</umb-localize>`}
</uui-box>
<div slot="actions">
<uui-button label="Close" @click=${this.#close}></uui-button>