i18n
i18n copied to clipboard
feat: support loading files from npm packages
๐ Linked issue
Related: #2999
โ Type of change
- [x] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [x] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
As proposed in #2999, I created a basic implementation for loading translation files form npm packages. This gives more flexibility in reusing and distributing translations. The feature should be especially useful for module / library authors wanting to provide translations which can be used to integrate with @nuxtjs/i18n.
๐ Checklist
- [x] I have linked an issue or discussion.
- [x] I have added tests (if possible).
- [x] I have updated the documentation accordingly.