📜  ngx-translate 访问当前语言 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:39.802000             🧑  作者: Mango

代码示例1
import { TranslateService } from '@ngx-translate/core';

constructor(private translate: TranslateService){
}
currentLanguage = this.translate.currentLang;