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