How to use the @ngx-translate/core.TranslateService function in @ngx-translate/core

To help you get started, we’ve selected a few @ngx-translate/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TwanoO67 / ngx-admin-lte / dist / services / translate.service.js View on Github external
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;