// Only continue if there's another piece, otherwise, it will error.
if(typeofpieces[i+1]!=='undefined'){
returnlang[piece];
}
}
if(typeoflang[piece]==='string'){
returnlang[piece];
}
returnfalse;
},Object.assign({},language));
if(translation===false){
if(language.locale!==this.default.locale){
console.warn(`The translation for "${target}" is not set in the ${this.language.locale} locale. Using ${this.default.name} (${this.default.locale}) instead.`);
returnthis.translate(target,true);
}
console.error(`The translation for "${target}" is set up in neither the target nor default locale.`);