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

Relative route localization using defineI18nRoute #3163

Open
3 of 4 tasks
BobbieGoede opened this issue Oct 6, 2024 · 0 comments
Open
3 of 4 tasks

Relative route localization using defineI18nRoute #3163

BobbieGoede opened this issue Oct 6, 2024 · 0 comments
Assignees

Comments

@BobbieGoede
Copy link
Collaborator

Describe the feature

Adapted from nuxt/nuxt#28826

For better DX we could support passsing relative paths, this way changing the routing structure does not require editing the i18n paths:

<!-- /company/employees.vue -->
<script setup>
defineI18nRoute({
  paths: {
    en: "./employees", // instead of /company/employees
    nl: "./medewerkers", // instead of /bedrijf/medewerkers
  },
});
</script>

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant