nonamenix / babel-vue-extractor

Babel messages extractor for vuejs templates
Apache License 2.0
5 stars 4 forks source link

Deprecation question #23

Open gitaarik opened 4 years ago

gitaarik commented 4 years ago

The deprecation notes say: "retrieve l10n strings from compiled .js files".

In the compiled .js files the gettext() calls have been transformed to something like _vm.gettext() or t.gettext(). This is done by Vue Loader I think. Now the babel extract functions don't find these calls anymore. Anyone has a solution for that?

ykshatroff commented 4 years ago

The arguments of gettext object attribute functions were excluded from parsing for the reason of being unpredictable. I believe it could be easily re-enabled, but configurable with a setting (eg command line flag).