Skip to content

Commit e23e876

Browse files
committed
predictions and cache
1 parent 82ea8cc commit e23e876

File tree

14 files changed

+2436
-989
lines changed

14 files changed

+2436
-989
lines changed

Readme.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Interactive command will ask you for the paths and will create a `.dev-translate
2727

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

4141
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.
4242

43+
## Predict translation cost
44+
45+
As translations consume tokens from API you can easily predict translation cost of your locale folder by running:
46+
47+
```sh
48+
dev-translate predict
49+
```
50+
4351
## Cache
4452

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

55+
### Clear Account cache
56+
57+
If you want to clear your cache not to reuse cached translations anymore:
58+
59+
```sh
60+
dev-translate clear
61+
```
62+
4763
## Beta
4864

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

6278
- [ ] support XML files in CLI
63-
- [x] support JSON files in CLI
79+
- [x] support JSON files in CLI
80+
- [x] support predictions
81+
- [x] support cache clear

0 commit comments

Comments
 (0)