fallback to en-us

This commit is contained in:
Kyle Spearrin 2018-07-19 14:33:33 -04:00
parent bb68303b03
commit f43fd34a8c
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import { I18nService as BaseI18nService } from 'jslib/services/i18n.service';
export class I18nService extends BaseI18nService { export class I18nService extends BaseI18nService {
constructor(systemLanguage: string, localesDirectory: string) { 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=' + const filePath = this.localesDirectory + '/' + formattedLocale + '/messages.json?cache=' +
process.env.CACHE_TAG; process.env.CACHE_TAG;
const localesResult = await fetch(filePath); const localesResult = await fetch(filePath);