Remove defaulting here

We already do it in the place this function gets called
pull/21833/head
David Baker 2017-05-25 12:09:48 +01:00
parent 913723b76b
commit db45e99536
1 changed files with 0 additions and 5 deletions

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