-
-
Notifications
You must be signed in to change notification settings - Fork 517
Open
Labels
Description
Describe the feature
I’d like to configure my application so that a locale like pt-BR uses a human‑friendly prefix instead of the code in URLs.
E.g. /brazil/about instead of /pt-BR/about.
Ideally, something like this:
locales: [
{
code: 'pt-BR',
file: 'pt-BR.yml',
language: 'pt-BR',
prefix: 'brazil'
}
]That way:
- I don’t need to map every route manually via pages config or macros.
- I can keep my existing locale code value (
pt-BR) unchanged. - I can support a custom prefix string (
brazil) that’s meaningful and SEO‑friendly.
Additional information
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).
- Check existing discussions and issues.