angular ngx-translate code example
Example 1: @ngx-translate/core
npm install @ngx-translate/core --save
Example 2: ngx-translate access current language
import { TranslateService } from '@ngx-translate/core';
constructor(private translate: TranslateService){
}
currentLanguage = this.translate.currentLang;