import {TranslateService, LangChangeEvent} from "@ngx-translate/core";
class ExportLanguageFun {
public currentLang : string;
constructor(private translate : TranslateService) {
}
public static setValue(): string {
this.translate
.onLangChange
.subscribe(lang => {
this.currentLang = lang;
})
return this.currentLang;
}
}
export let exportLanguage = ExportLanguageFun.setValue(); //Error: Property 'setValue' does not exist on type 'typeof ExportLanguageFun'.
Expected output console.log(let+"someValue");