addLanguage(code, lang, active = false) {
        if (this.i18next) {
            var translations = _.assign(fastCloneDeep(enTranslation), lang);
            this.i18next.addResourceBundle(code, 'translation', translations, true, true);
            if (active) {
                this.language = code;
            }
        }
    }
Add a language for translations
@param {string} code - The language code for the language being added.
@param {object} lang - The language translations.
@param {boolean} [active] - If this language should be set as the active language.