vue-translated icon indicating copy to clipboard operation
vue-translated copied to clipboard

How to extract messages?

Open bitmensch opened this issue 7 years ago • 0 comments

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).

  1. How would the process of extracting messages work with vue-translated?
  2. And how would you integrate this with webpack?
  3. Any examples?

Would be great to see some additional information around that topic in the vue-translated documentation.

bitmensch avatar Aug 20 '17 09:08 bitmensch