set default language to 'en_us'

This commit is contained in:
Jacob Overgaard
2023-07-27 13:46:19 +02:00
parent 478d6da164
commit f554d4ca84
3 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ export class UmbBackofficeElement extends UmbLitElement {
this.consumeContext(UMB_AUTH, (auth) => {
this.observe(auth.currentUser, (user) => {
if (user) {
const languageIsoCode = user.languageIsoCode ?? 'en';
const languageIsoCode = user.languageIsoCode ?? 'en_us';
localizationContext.setLanguage(languageIsoCode);
}
});

View File

@@ -4,13 +4,13 @@ import { ManifestTranslations } from '../extension-registry/models/translations.
const translationManifests: Array<ManifestTranslations> = [
{
type: 'translations',
alias: 'Umb.Translations.En',
alias: 'Umb.Translations.En_US',
weight: -100,
name: 'English (UK)',
meta: {
culture: 'en',
culture: 'en_us',
},
loader: () => import('../../../assets/lang/en.json'),
loader: () => import('../../../assets/lang/en_us.json'),
},
];