-
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
Angular recognize only the default lang in SSR. #163
Comments
Hello, Can you check if it works as expected when you enable Only these urls have to works : Thank's |
It doesn't work. Anyway I need to configure it without prefix in the default language. Thank you. |
Hello, Can you check files For example |
any update on this issue? We are experiencing similar symptoms, very often CSR & SSR behavior is not consistent so I am trying to figure what's up before I open a new issue |
I'm submitting a ... (check one with "x")
Description
Hello, I have an Angular application with Angular Universal, localize-router and ngx-translate installed. When I navigate in the client side of the website, the languages are working well. I have the default language (es) configured to be hidden in the url and english as secondary language. For example:
es =>
http://localhost:4000/quotation
✅en =>
http://localhost:4000/en/quotation
✅The problem is that if I deactivate Javascript and force to load the server side of the website, only It works the default language.
es =>
http://localhost:4000/quotation
✅en =>
http://localhost:4000/en/quotation
❌Even If I try to put the default language in the url, It works too:
es =>
http://localhost:4000/es/quotation
✅Node returns me this error in console:
Error: Cannot match any routes. URL Segment: 'en/quotation'
It's like the localize is not well configured but I think that I configured similar to the client side.
🔬 My files
Dependencies of package.json
NgModule of app.module.ts
app.server.module.ts
locales.json
'config.languages' returns...
🌍 Your Environment
Angular Version:
Localize Router Version:
Anything else relevant?
I have tried to do changes in LocalizeRouterSettings, change ManualParserLoader by ** LocalizeParser**... But nothing.
I have asked to Melisandre, Geralt de Rivia and Gandalf... But nothing...
Who could be my Superman?
Thank you so much!
The text was updated successfully, but these errors were encountered: