Closed BenjaminHofstetter closed 4 months ago
Hi @BenjaminHofstetter
If you only need to detect language changes, you can use the translateService:
private readonly translateService = inject(TranslateService);
...
translateService.onLangChange.subscribe(language => {
console.log(language.lang);
}
If you need to detect locale changes, then I'm interested in your use case, because this won't be possible anymore.
Thank you @gillerr. I don't need the locale. This solution works well.
I need this service in my UI to detect language changes. It there another way to detect language changes?
I have multi language data. If the language changes i have to (re)fetch the data for the desired language. How can i do that in Oblique 12?