i18n
i18n copied to clipboard
Allow domain wildcards
Describe the feature
Right now the domain feature is a bit unhandy:
- If I put
my-domain.deit does not matchwww.my-domain.de - If I put
my-domain.deit does not matchdev.my-domain.de - I cant put in multiple domains, e.g.
['my-domain.de', 'www.my-domain.de']
So it would be great one could just put it my-domain.de or *.my-domain.de and it matches my-domain.de, www.my-domain.de and dev.my-domain.de and when using useSwitchLocalePath() it also returns the correct domain that the user is on.
Right now it feels like this value is just hardcoded. I put www.my-domain.de but it does not work on dev.my-domain.de and useSwitchLocalePath() displays the wrong url as well.
Additional information
- [ ] Would you be willing to help implement this feature?
- [ ] Could this feature be implemented as a module?
Final checks
- [X] Read the contribution guide (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).
- [X] Check existing discussions and issues.