mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: fix utils
This commit is contained in:
@@ -9,7 +9,7 @@ const utils = { ...require('./utils.common') };
|
|||||||
utils.getLanguage = function () {
|
utils.getLanguage = function () {
|
||||||
let lang = 'en-GB';
|
let lang = 'en-GB';
|
||||||
if (typeof window === 'object' && window.config && window.utils) {
|
if (typeof window === 'object' && window.config && window.utils) {
|
||||||
lang = window.utils.params().lang || window.config.userLang || window.config.defaultLang || 'en-GB';
|
lang = utils.params().lang || window.config.userLang || window.config.defaultLang || 'en-GB';
|
||||||
}
|
}
|
||||||
return lang;
|
return lang;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user