Skip to content
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

translations with vue-router and vue-i18n #2643

Closed
Jejec opened this Issue Mar 7, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@Jejec
Copy link

Jejec commented Mar 7, 2019

What problem does this feature solve?

Hello,

I apologize if I don't make my request correctly but I only had a choice for an error or a new feature.
I have been looking for a solution to translate my urls as cleanly as possible according to the language. I was wondering if you had a particular solution to propose?

Thank you for your time.

What does the proposed API look like?

I just don't have a viable solution right now.

@posva

This comment has been minimized.

Copy link
Member

posva commented Mar 8, 2019

Hi, yeah, sorry, issues are for bug reports and feature requests only. You will have to use the appropriate channel for questions.

This is a question I have gotten multiple times so I will shortly answer here and probably add some docs in the future.

Handling translated url routes isn't easy because you have to replace the whole routes config and this is not well handled right now by vue router because it's dynamic routing and it wasn't prepared for this in the first place. However, you should be able to achieve this by creating a new router and replacing the matcher as pointed out here: #1234 (comment)

@posva posva closed this Mar 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.