Polyconseil / vue-gettext

Translate your Vue.js applications with gettext.
MIT License
278 stars 55 forks source link

How can vue-gettext be used in typescript ? #107

Open ppratibha opened 4 years ago

ppratibha commented 4 years ago

I am trying to use vue-gettext in typescript component for a vue project. I am using it like this

get myText() { return this.$gettext('myText'); }

This was working perfectly fine for JS file. But As we are migrating to TS , I see that this text is not extracted as a translatable string and it does not end up in PO file of the project. Can someone help me with this ?

Shin-- commented 4 years ago

@ppratibha Same problem here. Have you found a solution for this yet?

Edit: I think I found the answer. It is an easygettext issue. TS support still needs to be added.