ngxtranslate get locale code example
Example: ngx-translate access current language
import { TranslateService } from '@ngx-translate/core';
constructor(private translate: TranslateService){
}
currentLanguage = this.translate.currentLang;
import { TranslateService } from '@ngx-translate/core';
constructor(private translate: TranslateService){
}
currentLanguage = this.translate.currentLang;