i18n icon indicating copy to clipboard operation
i18n copied to clipboard

feat: support loading files from npm packages

Open markbrockhoff opened this issue 1 year ago โ€ข 0 comments

๐Ÿ”— 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.

markbrockhoff avatar Jun 28 '24 09:06 markbrockhoff