diff options
| author | Roger Braun <rbraun@Bobble.local> | 2017-11-07 15:23:00 +0100 |
|---|---|---|
| committer | Roger Braun <rbraun@Bobble.local> | 2017-11-07 15:23:00 +0100 |
| commit | 74b513122e8dc6768ceb267947cb5a2f206ce7bd (patch) | |
| tree | c39b93cfd269580bd4022a66784185a2d8f41045 | |
| parent | 7516cd859f0c9bc078548f801cbb6a63b72ced97 (diff) | |
Set locale from browser settings.
| -rw-r--r-- | src/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js index ce941ee1..9d2930b6 100644 --- a/src/main.js +++ b/src/main.js @@ -83,8 +83,10 @@ const router = new VueRouter({ } }) +const currentLocale = (window.navigator.language || 'en').split('-')[0] + const i18n = new VueI18n({ - locale: 'en', + locale: currentLocale, fallbackLocale: 'en', messages }) |
