-
Notifications
You must be signed in to change notification settings - Fork 94
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
localize-router incompatible with @angular/router: ^6.0.0 #128
Comments
Is there any update on this ? I want to migrate my project to angular 6 and this is one of my last issues ! |
Is there an ETA for this?
|
Until this is updated, you can temporarily add rxjs-compat to your packages, it should fix it.
|
@philip-firstorder , does this work for you? When I use |
@Empereol don’t know about the routes, but my translation worked. Note that I used both rxjs and rxjs-compat. |
There's a pull request waiting to be included, would you mind checking why it fails ? |
Travis Config installs node_js v5, shouldn’t it have at least 8.9? And then there are the other dependency warnings as the versions don’t match. Only the owner of this repo can change this however. |
Hello guys. I tried with the rxjs-compat and isn't working @philip-firstorder
|
@alvarofelipe12 You can actually try to use my fork that I use on Angular 6: https://github.com/gilsdav/ngx-translate-router |
Hi @gilsdav. Is your fork working as expected with the url's? |
Hi @gilsdav I have tested your fork and it doesnt work. |
Hello @andresceron , we use it on my company with complex routes and we actually don't have this problem anymore. Are you using version (1.0.2) : @gilsdav/ngx-translate-router@1.0.2 ? Is-it possible that this redirection can come from a guard ? If the problem persist, I am interested that you create an issue at https://github.com/gilsdav/ngx-translate-router/issues with your routes (or your project sources) to be able to reproduce it. You can also take a look at the test project to see its functional implementation: https://github.com/gilsdav/ngx-translate-router/tree/from-localize-router/src |
Hi @gilsdav But let see if the problem isnt because of the Angular 7 version. Another issue I encountered was that to use your ngx-translate-router I needed to change the "localize-router-http-loader" from 'localize-router' to your fork version inside the node_modules. |
Hi again @gilsdav, I desactivated the guard and it only redirect to a / path, without language nor nothing and breaks to redirect. I will now try to downgrade to ng6. I will keep you in touch. Thanks! |
@andresceron I'm waiting for you to keep me informed. I didn't take time to fork it because it doesn't work on each cases like with Angular Universal so I personally prefer to use manual loader. Tested on Angular 7 and nothing special detected. |
Ok, i have downgraded to Angular 6 and it does the same. What I do is following: In the about-router-module I have "LocalizeRouterModule.forChild(routes)," in the imports. |
@andresceron Ok I think I got it.
If yes, can you try something like this ?
Be aware that besides not working here, deep empty path never worked in Universal. |
Hmm.. I use:
|
@andresceron So can you try ?
|
Yes, I got the same results as before, but.. But I then looked to all my paths and looked that I had a '**' path, and when I removed that path
The error I got was this:
|
@andresceron The issue look's like gilsdav/ngx-translate-router#1 . |
Ok, I will. |
Localize router now supports Angular v6 and v7. Please upgrade to the latest 2.x.x version. |
Hi!
I have been having an issue with
localize-router
and@angular/router: 6.0.0
.It doesn't change the url /en /es when doing changeLanguage. After a deeper looking I tested it with
@angular/router: 5.2.6
and it does work with it.Would you be able to fix this any time soon so it is compatible with
@angular/router:6.0.0
?Thanks!
The text was updated successfully, but these errors were encountered: