[ ] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
📚 Description
This PR is built on top of #2714, I have it marked WIP/draft until that PR has been merged/reviewed.
Resolves #2628
Now that vue-i18n-routing has been fully integrated we have more control over the types, this PR changes the augmented vue-i18n types based on the generated options of a project. This way the locales type will be correctly inferred based on whether it was configured as string[] or LocaleObject[] in the configuration file (or that of extended layers).
🔗 Linked issue
2628
❓ Type of change
📚 Description
This PR is built on top of #2714, I have it marked WIP/draft until that PR has been merged/reviewed.
Resolves #2628
Now that
vue-i18n-routing
has been fully integrated we have more control over the types, this PR changes the augmentedvue-i18n
types based on the generated options of a project. This way thelocales
type will be correctly inferred based on whether it was configured asstring[]
orLocaleObject[]
in the configuration file (or that of extended layers).📝 Checklist