From 6ab5b59f66dbf0d521771e21acc5ad0993d03011 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 6 Sep 2019 09:36:48 -0400 Subject: [PATCH] show locale name for language selection --- jslib | 2 +- src/app/accounts/settings.component.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index b74ee7b3ee..255bd3962d 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit b74ee7b3ee823a820854623cc32c8522a09e9f4d +Subproject commit 255bd3962d268bec8f66411676049803bb29e0d3 diff --git a/src/app/accounts/settings.component.ts b/src/app/accounts/settings.component.ts index a63f68dbcd..2d0eb8b2f1 100644 --- a/src/app/accounts/settings.component.ts +++ b/src/app/accounts/settings.component.ts @@ -79,7 +79,11 @@ export class SettingsComponent implements OnInit { const localeOptions: any[] = []; i18nService.supportedTranslationLocales.forEach((locale) => { - localeOptions.push({ name: locale, value: locale }); + let name = locale; + if (i18nService.localeNames.has(locale)) { + name += (' - ' + i18nService.localeNames.get(locale)); + } + localeOptions.push({ name: name, value: locale }); }); localeOptions.sort(Utils.getSortFunction(i18nService, 'name')); localeOptions.splice(0, 0, { name: i18nService.t('default'), value: null });