Monday, 27 August 2018

Angular 5 localize-router set route with country/lang code

Here is my problem. I have to set up routing in Angular so that in URL there will be a country code and a language. for example

https://example.com/usa/en

The tricky part is that this localization parts can change so I have a button to switch country and language so it will be /gb/en or /usa/fr.

How can I get it working like this using localize-router and ngx-translate.

Any help much appreciated.



from Angular 5 localize-router set route with country/lang code

No comments:

Post a Comment