Skip to content

Commit

Permalink
fix(config): more test friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed May 6, 2018
1 parent 9d79464 commit a8e194f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app-config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import cloneDeep from 'lodash/cloneDeep'
import { DeepReadonly } from './typings/helpers'

const langUI = browser.i18n.getUILanguage().replace('-', '_')
const langUI = (browser.i18n.getUILanguage() || 'en').replace('-', '_')
const langCode = /^zh_CN|zh_TW|en$/.test(langUI)
? langUI === 'zh_HK'
? 'zh_TW'
Expand Down

0 comments on commit a8e194f

Please sign in to comment.