Remove defaulting here
We already do it in the place this function gets called
This commit is contained in:
parent
913723b76b
commit
db45e99536
1 changed files with 0 additions and 5 deletions
|
@ -38,11 +38,6 @@ export function _t(...args) {
|
|||
}
|
||||
|
||||
export function setLanguage(languages) {
|
||||
if (!languages || !Array.isArray(languages)) {
|
||||
const languages = this.getNormalizedLanguageKeys(this.getLanguageFromBrowser());
|
||||
console.log("no language found. Got from browser: " + JSON.stringify(languages));
|
||||
}
|
||||
|
||||
request(i18nFolder + 'languages.json', function(err, response, body) {
|
||||
function getLanguage(langPath, langCode, callback) {
|
||||
let response_return = {};
|
||||
|
|
Loading…
Reference in a new issue