DEV Community

Discussion on: Lazy translation assets with Angular, Transloco and Nx Buildable Libs

Collapse
 
seanperkins profile image
Sean Perkins

The library @workspace/i18n should just contain the translation asset files. The logic for handling language changes should be handled from the Transloco library. The library has an option for handling live translation changes (when you change the active language it will re-render pipes/bindings), but it will come with a slight performance hit for all the watchers. Alternatively you can change the language and reload your application to render all text in the correct language.