Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A **React** component for **local, secure, on-demand translations** powered by t
- [Installation](#installation)
- [Usage](#usage)
- [Example](#example)
- [CLI Tool for Static Text Translation](#cli-tool-for-static-text-translation)
- [How It Works](#how-it-works)
- [Requirements](#requirements)
- [Roadmap](#roadmap)
Expand Down Expand Up @@ -109,6 +110,17 @@ export default App

```

## CLI Tool for Static Text Translation

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:

```bash
npx generate_translations -t Spanish Dutch

```
This command collects all the static text in your app and translates it into the specified languages (Spanish and Dutch in this example).
Other CLI options (for example, to exclude specific files or directories) can be found in the cli.js file.


# How It Works

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@codethicket/react-ai-translator",
"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.",
"version": "0.1.1",
"version": "0.1.5",
"author": "Joel Rajesh",
"license": "MIT",
"bin": {
Expand Down
Loading
Loading