Commit cabc473e5efae9784e813e91373c35c0b8c5635f
'en' as Default language and try autodetection if is not setting
Marcos Gutierrez committed on 9/29/2017, 6:29:09 PMParent: 79fe3109fa951c4426e6ceedce85091f35224ee2
Files changed
plugs/intl/sync/i18n.js | changed |
plugs/intl/sync/i18n.js | ||
---|---|---|
@@ -75,13 +75,14 @@ | ||
75 | 75 | //TODO: Depject this! |
76 | 76 | _locale = true; |
77 | 77 | i18nL.configure({ |
78 | 78 | locales:['en','ki','es'], |
79 | - directory: appRoot + '/locales' | |
79 | + directory: appRoot + '/locales', | |
80 | + defaultLocale: 'en' | |
80 | 81 | }); |
81 | 82 | |
82 | - watch(api.settings.obs.get('patchwork.lang'), currentLocale => { | |
83 | - i18nL.setLocale(currentLocale) | |
83 | + watch(api.settings.obs.get('patchwork.lang',navigator.language), currentLocale => { | |
84 | + i18nL.setLocale(getSubLocal(currentLocale)) | |
84 | 85 | }) |
85 | 86 | } |
86 | 87 | |
87 | 88 | } |
Built with git-ssb-web