git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit cabc473e5efae9784e813e91373c35c0b8c5635f

'en' as Default language and try autodetection if is not setting

Marcos Gutierrez committed on 9/29/2017, 6:29:09 PM
Parent: 79fe3109fa951c4426e6ceedce85091f35224ee2

Files changed

plugs/intl/sync/i18n.jschanged
plugs/intl/sync/i18n.jsView
@@ -75,13 +75,14 @@
7575 //TODO: Depject this!
7676 _locale = true;
7777 i18nL.configure({
7878 locales:['en','ki','es'],
79- directory: appRoot + '/locales'
79+ directory: appRoot + '/locales',
80+ defaultLocale: 'en'
8081 });
8182
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))
8485 })
8586 }
8687
8788 }

Built with git-ssb-web