1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

fallback to en-us

This commit is contained in:
Kyle Spearrin 2018-07-19 14:33:33 -04:00
parent bb68303b03
commit f43fd34a8c

View File

@ -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);