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

Plan to make the core library-agnostic #708

Closed
Ugzuzg opened this issue Jun 17, 2020 · 3 comments
Closed

Plan to make the core library-agnostic #708

Ugzuzg opened this issue Jun 17, 2020 · 3 comments
Labels

Comments

@Ugzuzg
Copy link

Ugzuzg commented Jun 17, 2020

Is your feature request related to a problem? Please describe.

I'm trying to create a library for vue.js using @lingui/core. The main two issues I have are

  • the parts parser code is inside @lingui/react and will have to be duplicated.;
  • babel configuration can't be reconfigured. I was hoping to be able to extract some strings at least from <script> tag from vue, as it is just javascript. Obviously the parser will not work with templates in its current from.
@tricoder42
Copy link
Contributor

Hey @Ugzuzg,

the parts parser code is inside @lingui/react and will have to be duplicated

Sure, let's move it to separate package. Or maybe would be enough to move it to core pacakge?

babel configuration can't be reconfigured. I was hoping to be able to extract some strings at least from <script> tag from vue, as it is just javascript. Obviously the parser will not work with templates in its current from.

Could you please provide more details? What exactly do you need and what solution do you suggest?

@Ugzuzg
Copy link
Author

Ugzuzg commented Aug 4, 2020

Or maybe would be enough to move it to core pacakge?

core sound like the right place for this.

Could you please provide more details? What exactly do you need and what solution do you suggest?

I haven't worked with babel at all, but as I understand, vue extracts javascript and passes it through babel, so it is possible to make the t macro work with vue by specifying the vue plugins in babel. Trans macro won't work, though, as it is react specific.

@stale
Copy link

stale bot commented Oct 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

2 participants