mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
fallback to en-us
This commit is contained in:
parent
bb68303b03
commit
f43fd34a8c
@ -2,7 +2,7 @@ import { I18nService as BaseI18nService } from 'jslib/services/i18n.service';
|
||||
|
||||
export class I18nService extends BaseI18nService {
|
||||
constructor(systemLanguage: string, localesDirectory: string) {
|
||||
super(systemLanguage, localesDirectory, async (formattedLocale: string) => {
|
||||
super(systemLanguage || 'en-US', localesDirectory, async (formattedLocale: string) => {
|
||||
const filePath = this.localesDirectory + '/' + formattedLocale + '/messages.json?cache=' +
|
||||
process.env.CACHE_TAG;
|
||||
const localesResult = await fetch(filePath);
|
||||
|
Loading…
Reference in New Issue
Block a user