Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
useLang = prefLang.match(langmatch) ? prefLang : 'en';
}
_this.translate.use(useLang);
console.log('Translation language has been set to: "' + useLang + '"');
// translate.use( 'ru' );
});
}
TranslateService.prototype.ngOnInit = function () {
// TODO
};
TranslateService.prototype.getTranslate = function () {
return this.translate;
};
TranslateService = __decorate([
core_1.Injectable(),
__metadata("design:paramtypes", [user_service_1.UserService, core_2.TranslateService])
], TranslateService);
return TranslateService;
}());
exports.TranslateService = TranslateService;