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
Final checks
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/aboutinstead of/pt-BR/about.Ideally, something like this:
That way:
pt-BR) unchanged.brazil) that’s meaningful and SEO‑friendly.Additional information
Final checks