mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: no need for this check
This commit is contained in:
@@ -8,7 +8,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) {
|
||||||
lang = 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