Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ppratibha opened this issue Jan 20, 2020 · 1 comment
Open

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

ppratibha opened this issue Jan 20, 2020 · 1 comment

Comments

@ppratibha
Copy link

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--
Copy link

Shin-- commented Feb 27, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants