fix: left project/circle page and intl default localisation
This commit is contained in:
@ -179,7 +179,9 @@ class JsI18n {
|
||||
t(key) {
|
||||
var translations = this.locales[this.locale];
|
||||
if (translations == undefined) {
|
||||
translations = this.locales[this.defaultLocale];
|
||||
if(this.locales.length > 1) {
|
||||
translations = this.locales[this.defaultLocale];
|
||||
}
|
||||
}
|
||||
if(translations != undefined) {
|
||||
let translation = key.toString().split('.').reduce((o, i) => (o ? o[i] : undefined), translations);
|
||||
|
Reference in New Issue
Block a user