DEV Community

Discussion on: Deploying an i18n Angular app with angular-cli

Collapse
 
mintplayer profile image
MintPlayer • Edited

Hi,

I see that, to switch languages, you're using the <a href> tag. I was wondering if it's possible to use the <a [routerLink]> instead so that the app can switch languages without reloading the page.

From the angular docs I read that we actually have to build the app for each language we want to serve. I don't really like this since it would probably imply that the user cannot switch languages without reloading the page. Do you know a proper way around this?