Extracting and replacing texts for internationalization is a tedious task with a lot of manual work that is prone to human error. Using this script saves you all that work and removes human error completely.
What does this project do?
How to use?
- Install the library globally by using
npm install -g textractor-react.
- To apply the Textract Just use
textract [filePath/Directory] [jsonFile]
- This will find the static strings inside the file and add them inside the jsonFile with format
- The Static string in the Component will be replaced with the
We're so glad you're thinking about contributing to Textractor-react! If you're unsure about anything, just ask -- or submit the issue or pull request anyway. The worst that can happen is you'll be politely asked to change something. We love all friendly contributions.
We want to ensure that all of our projects have a welcoming environment for all contributors. Our team follows the Contributor Covenant Code of Conduct and all contributors should do the same.
How do I get started for contributing?
Just clone this repo
git clone https://github.com/DevSquads/replaceStaticTexts.git .
Install the needed packages with
npm install .
npm test to run the tests .
node main.js path/to/dictionary.json path/to/your/project/src to apply our script .
Where can I get more help, if I need it?
You can contact us on firstname.lastname@example.org