FIx i18n JS regression about locale selection

When rewriting the i18n.js file from ES5 to ES6, the detectLocale()
call in the constructor was missed - meaning the lang files were loaded by the browser,
but never actually used.
This commit is contained in:
Ingo Schommer 2016-09-15 19:31:57 +12:00
parent 8f23fa99a5
commit 30174db459

View File

@ -16,8 +16,8 @@
class i18n { class i18n {
constructor() { constructor() {
this.currentLocale = null;
this.defaultLocale = 'en_US'; this.defaultLocale = 'en_US';
this.currentLocale = this.detectLocale();
this.lang = {}; this.lang = {};
} }