Skip to content

Commit

Permalink
docs: remove section on OpenAI translation in languages README, since…
Browse files Browse the repository at this point in the history
… it is not yet implemented #3
  • Loading branch information
TillaTheHun0 committed Jan 8, 2024
1 parent 3c45f45 commit 70ae525
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions languages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<!-- toc -->

- [Add a new language](#add-a-new-language)
- [OpenAI translation](#openai-translation)

<!-- tocstop -->

Expand All @@ -23,17 +22,3 @@ To add a new language, add an object to the `language` array in `def.js`. The st
Create a new `.json` file under the `strings` folder with the 2 letter language code as the name of the file. If you wish to let OpenAI handle the translation, set the content of the file to `{}`. Otherwise, if you wish to translate some of the strings manually, add the key and it's translated string to the json object. The keys can be found in the english string file `en.json`.

Create a folder with the name set as the 2 letter language code under the `src` folder.

## OpenAI translation

Start by creating a `.env` file in the root of the `docs` folder. Set the content as follow.

```
OPENAI_API_KEY={YOUR API KEY HERE}
```

Run the following command to start the translation process in the `docs` directory.

```bash
node ./translateLocal.js
```

0 comments on commit 70ae525

Please sign in to comment.