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

Option for custom regexp when extracting #26

Closed
renchap opened this issue Apr 21, 2017 · 3 comments
Closed

Option for custom regexp when extracting #26

renchap opened this issue Apr 21, 2017 · 3 comments

Comments

@renchap
Copy link
Contributor

renchap commented Apr 21, 2017

I am using CoffeeScript for some of my React components, and currently i18n_extract only reads .js / .jsx files.
It would be great to have an additional argument to either specify the extensions of the source files, or the full regexp.

Changing srcPath to

var srcPath = `${args.source || 'src'}/**/*.{js,coffee}*`;

works fine for me. I expect it will also be helpful for Typescript user, as Typescript is a superset of JS.

@francescarpi
Copy link
Member

Hi,
ok. I'll try to do as soon as possible.

Thanks.

@francescarpi
Copy link
Member

francescarpi commented Apr 22, 2017

Hi Renaud!

It's done!

https://www.npmjs.com/package/redux-i18n#extract-texts-and-build-templatepot

Get the latest 1.3.2 version.

Best regards.

@renchap
Copy link
Contributor Author

renchap commented Apr 25, 2017

Thanks a lot!

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

No branches or pull requests

2 participants