mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
show locale name for language selection
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: b74ee7b3ee...255bd3962d
@@ -49,7 +49,11 @@ export class OptionsComponent implements OnInit {
|
|||||||
|
|
||||||
const localeOptions: any[] = [];
|
const localeOptions: any[] = [];
|
||||||
i18nService.supportedTranslationLocales.forEach((locale) => {
|
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.sort(Utils.getSortFunction(i18nService, 'name'));
|
||||||
localeOptions.splice(0, 0, { name: i18nService.t('default'), value: null });
|
localeOptions.splice(0, 0, { name: i18nService.t('default'), value: null });
|
||||||
|
|||||||
Reference in New Issue
Block a user