vue-translated
vue-translated copied to clipboard
How to extract messages?
I'm currently looking into the options of supporting multiple translations in a Vue application.
While doing this I also looked at vue-translated and format-message and was wondering how the process of extracting the messages from the various source files (.js, .vue) would work.
The process for [format-message] is described here: https://github.com/format-message/format-message#internationalization-made-easy It also seems to provide some babel plugin babel-plugin-extract-format-message for extracting messages but it would only work with .js files (not with .vue files).
- How would the process of extracting messages work with vue-translated?
- And how would you integrate this with webpack?
- Any examples?
Would be great to see some additional information around that topic in the vue-translated documentation.