Comments (5)
Maybe a bit late. Anyhow, this is what we use to scan tsx files:
rm -rf tmp/i18n && npx tsc --skipLibCheck -target es6 --module esnext --jsx preserve --outDir tmp/i18n && npx i18next-scanner --config i18next-scanner.config.js tmp/i18n/**/*.{js,jsx} && rm -rf tmp/i18n
from i18next-scanner.
Don't know about plans, but this should help parsing ts files #88 (comment)
from i18next-scanner.
maybe, you can try converting to js in the transform function of the config.js file
from i18next-scanner.
Use a custom transform, you can easily compile ts/tsx file to ES5/ES6 and extract translations.
from i18next-scanner.
Related Issues (20)
- allow configuration of multiple set of dynamic context HOT 1
- The removeUnusedKeys option is not working
- json format v4 HOT 1
- The function passed to parseTransFromString is called multiple times.
- Concatenated strings (newlines)
- `key_one` and `key_other` instead of `key` and `key_plural` HOT 5
- The `parseTransFromString` output the nested tags twice each in the Trans component. HOT 1
- why cant extract strings for packages from XRENGINE? HOT 1
- Following the steps at README.md does not produce the documented result. Something is wrong, perhaps me or perhaps the program.
- Zero output on scanner
- Trans component can't be parsed if boolean props exist. HOT 1
- Add possibility to use regex in `config.trans.component`
- Reading `context` dynamically per `tFunction`, `TransComponent`
- Log message is shown when no translation key is added
- glob-parent before 5.1.2 vulnerable to Regular Expression Denial of Service in enclosure regex HOT 1
- Multiple fallback keys
- peerDependency required: i18next >= 19
- Return non-zero exit code on failure to extract strings
- Unexpected token `||=`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18next-scanner.