Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(locale): Adds default locale if not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Feb 26, 2018
1 parent 23b3a1f commit 3be3970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { version } from '../../package.json'

const platform = new MobileDetect(window.navigator.userAgent)

const locale = navigator.language || navigator.userLanguage
const locale = navigator.language || navigator.userLanguage || 'en-us'

const currentLanguage = (() => {
return head(locale.split('-'))
Expand Down

0 comments on commit 3be3970

Please sign in to comment.