Skip to content

Commit

Permalink
predictions and cache
Browse files Browse the repository at this point in the history
  • Loading branch information
aexol committed Dec 28, 2024
1 parent 82ea8cc commit e23e876
Show file tree
Hide file tree
Showing 14 changed files with 2,436 additions and 989 deletions.
22 changes: 20 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Interactive command will ask you for the paths and will create a `.dev-translate

```
{
"apiKey": "4404413a.b16aaa6",
"apiKey": "YOUR_API_KEY",
"localeDir": "locales",
"inputLanguageFolderName": "en",
"inputLanguage": "ENUS"
Expand All @@ -40,10 +40,26 @@ Then dev-translate CLI will translate all the json files from input Language and

For example if you have a folder `./locales/` with `en` , `pl`. `de`, `fr`, `in` and you choose `en` as an input language. Dev translate will automatically translate from `en` to all other langauges keeping the json file structure.

## Predict translation cost

As translations consume tokens from API you can easily predict translation cost of your locale folder by running:

```sh
dev-translate predict
```

## Cache

Dev-translate backend includes cache inside it so we don't need to implement local cache here

### Clear Account cache

If you want to clear your cache not to reuse cached translations anymore:

```sh
dev-translate clear
```

## Beta

CLI is the part of beta stage of new dev-translate and it is not yet on https://devtranslate.app. Contact support at [email protected] for early access.
Expand All @@ -60,4 +76,6 @@ $ npm run start
## Roadmap

- [ ] support XML files in CLI
- [x] support JSON files in CLI
- [x] support JSON files in CLI
- [x] support predictions
- [x] support cache clear
Loading

0 comments on commit e23e876

Please sign in to comment.