Skip to content

Commit 071a5c2

Browse files
committed
chore: update readme and bump up the version
1 parent e67a804 commit 071a5c2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@codethicket/react-ai-translator",
33
"description": "A React component for local, secure, on-demand translations powered by the Xenova/nllb-200-distilled-600M model. This package utilizes the WebGPU capabilities of the device on which the app runs, ensuring data privacy and enabling you to translate text without sending data to third-party APIs.",
4-
"version": "0.1.1",
4+
"version": "0.1.5",
55
"author": "Joel Rajesh",
66
"license": "MIT",
77
"bin": {

0 commit comments

Comments
 (0)