Skip to content

Commit 5962ea8

Browse files
authored
chore: update readme and bump up the version (#13)
2 parents aea34d8 + 584cd50 commit 5962ea8

File tree

2 files changed

+846
-7
lines changed

2 files changed

+846
-7
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ A **React** component for **local, secure, on-demand translations** powered by t
1515
- [Installation](#installation)
1616
- [Usage](#usage)
1717
- [Example](#example)
18+
- [CLI Tool for Static Text Translation](#cli-tool-for-static-text-translation)
1819
- [How It Works](#how-it-works)
1920
- [Requirements](#requirements)
2021
- [Roadmap](#roadmap)
@@ -109,6 +110,17 @@ export default App
109110

110111
```
111112

113+
## CLI Tool for Static Text Translation
114+
115+
We provide a simple CLI command to automatically collect and translate **all static text** in your application into desired languages. Run the following command from your project root:
116+
117+
```bash
118+
npx generate_translations -t Spanish Dutch
119+
120+
```
121+
This command collects all the static text in your app and translates it into the specified languages (Spanish and Dutch in this example).
122+
Other CLI options (for example, to exclude specific files or directories) can be found in the cli.js file.
123+
112124

113125
# How It Works
114126

0 commit comments

Comments
 (0)