mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
8f23fa99a5
commit
30174db459
@ -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 = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user