-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Possibility to localize dynamic routes #79
Comments
Hi @metalanti
|
thank you! I think if my request can be done, it would be more elegant :) |
I think this is exactly what I was asking here Right now, we can place pretty much all other content that's to be translated in some external file or backend. The only missing strings are exactly the urls. @paulgv If there's any way to have the component's nuxtI18n property have access to data fetched on asyncData before the router generation that would be great! I'm assuming they have to be hardcoded so you can use acorn at build time to create the router (?) @metalanti did you ever find some way to accomplish what you were asking initially? |
@ptdev we have the same problem, but mine is not urgent. i have still no solution |
Hi @metalanti , my problem is also not really urgent. It's just one of those "would be great to have" features. |
Anyone have news on this issue? |
I'm also searching for an update on this issue. |
I'm chiming in here too, can't for the life of me figure out an elegant solution. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
bump |
Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
Here's my attempt at supporting dynamic parameters translation in nuxt-i18n: #345 Please read the PR description to see how you can try it yourselves. I'd love to have some feedback on this! |
Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
* feat: Dynamic route parameters translation Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
* feat: Dynamic route parameters translation Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
* feat: Dynamic route parameters translation Adds support for translating dynamic route parameters via the Vuex store module BREAKING CHANGE: `preserveState` is now set automatically when registering the store module and cannot be set via the configuration anymore close #79
Any news? The proposed solution to pass a function to |
This can't do much, since it's compile time micro and cannot be useful when loading data from an API. |
What problem does this feature solve?
I'm not sure if it is possible :)
I have a route
/article/:slug
(en) and I'd like to translate it to other languages with translatedslug
Eg: (en)
/article/first-article
and (de)/de/artikel/erste-artikel
Now I can do this:
article.vue
but I can't change the
slug
based on the article's dataWhat does the proposed changes look like?
I think the
i18n.paths[locale]
should accept a function with the access ofthis
(data) and should return some Object:The text was updated successfully, but these errors were encountered: