src/i18n.js
Function i18n
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function i18n(objectWithLanguages, langs, defaultLang, includeTranslations) {
langs = langs || [];
includeTranslations = includeTranslations || false;
var obj = {};
// Detect keys that need translating