Reacting to Language Changes

The Internationalization package enables you to react to changes in the locale data or language.

To react to language changes, call the provideLocalizationService function on every render. The recommended approach is to extract the provideLocalizationService into a getter.

For Functional Components this is not needed since the useLocalization hook is called on every render.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?