farsi-text-extractor
v1.0.5
Published
CLI tool to extract Farsi strings from JSX/TSX/JS/TS files for translation
Maintainers
Readme
Usage
Run directly with npx:
npx farsi-text-extractor🧾 farsi-text-extractor
A simple CLI tool that extracts Persian (Farsi) UI strings from .js, .jsx, .ts, and .tsx files in your src/ folder — ideal for preparing your app for translation (i18n).
✨ Features
- Detects Farsi text in:
- JavaScript / TypeScript string literals
- JSX elements like
<span>توضیح</span>
- Transforms template variables from
${variable}into{{variable}}for translator-friendly formatting - Outputs all strings into a single
extractedTexts.jsonfile in your project root
🚀 Quick Start
Without installing anything (via npx):
npx farsi-text-extractor