-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set route with country/lang code in url #141
Comments
@psmyda ever figure out an approach? I need locales in my urls such as example.com/en-US |
@jrmcdona Hi. Finally I have ended manipulating APP_BASE_HREF for setting country code. Its because its an Universal app. |
@psmyda I am also stuck on this, will it be possible to provide some details how you manipulated it? |
Ok so APP_BASE_HREF, in this case, depends on the request URL.
Then in AppModule I'm using it like this:
this is in Providers section for @NgModule |
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
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.
The text was updated successfully, but these errors were encountered: