Remove defaulting here

We already do it in the place this function gets called
This commit is contained in:
David Baker 2017-05-25 12:09:48 +01:00
parent 913723b76b
commit db45e99536

View file

@ -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 = {};