-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Extraction from tsx file #179
Comments
Easiest way to do this (so far as I know) is to run tsc first, then run your scanner on its output. I have this in my package.json.
|
why compiling ts/tsx is required to extract translation ? |
Because i18next-scanner doesn't parse typescript files, so it'll choke when it hits syntax it doesn't recognize. Compiling removes all that syntax. |
Is there any change that |
I haven't really went to far with this, but seems like Parser actually run over Ts files:
|
@ImADrafter : where I have to put above code inside where and how to run it ? gulp.task('extract', function () { running above script |
Is there any support or solution or workaround on tsx file... |
how and where I have to run this file |
how to run this scanner over tsx file any solution for same, will helpful |
Can I extract language from a tsx file (react component) as shown below?
If yes, what config file do I need to make this happen?
The text was updated successfully, but these errors were encountered: