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

Extracting of strings #13

Closed
Remo opened this issue Mar 22, 2017 · 1 comment
Closed

Extracting of strings #13

Remo opened this issue Mar 22, 2017 · 1 comment

Comments

@Remo
Copy link

Remo commented Mar 22, 2017

I tried to figure out a way to automatically extract strings. There are a number of tools, some for angular, some make file based tools, so far I only tried to get this running as it seemed easy enough to customize https://github.com/flozz/stonejs-tools

I managed to get something extracted by running this command:

stonejs extract "dist/**/*.js" file.pot --functions="$t"

The summary so far:

  • It does extract functions, tlang and so on would also work
  • Not sure how to extract | translate, not sure I would use that though
  • stonejs doesn't parse my ES6 code, I had to run it on top of my dist files which makes the references in the pot file a bit silly
  • I have to convert the POT file to a JSON file, there are a lot of tools for this, it's just another step

This feels a bit cumbersome, did anyone try something like this?

@tikiatua
Copy link
Member

Hi there. I will close this issue as it is not directly related to the vuex-i18n plugin

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