Hi, first of all thanks for the hard work for this project. I'd really like to use this to have a single source for i18n but would like to output the results as JSON.
This is because I'd like to lazy load the translation files from my SPA depending on which language has been requested.
Proposed Behavior
Add a --format option which can take es6, umd or json. (Defaults to es6)
// e.g.
php artisan vue-i18n:generate --format json
Since adding --json will become cumbersome, how about refactoring it to --format which takes es6, umd or json? But keep --umd for backwards compatibility.
I would like to hear your thoughts @martinlindhe and am also willing to contribute :)
Thanks!
Hi, first of all thanks for the hard work for this project. I'd really like to use this to have a single source for i18n but would like to output the results as JSON. This is because I'd like to lazy load the translation files from my SPA depending on which language has been requested.
Proposed Behavior
Add a
--format
option which can takees6
,umd
orjson
. (Defaults toes6
)Current Behavior
Either es6 or umd is supported.
Possible Solution
Since adding
--json
will become cumbersome, how about refactoring it to--format
which takeses6
,umd
orjson
? But keep--umd
for backwards compatibility.I would like to hear your thoughts @martinlindhe and am also willing to contribute :) Thanks!