From 70ae52572c10ff146aef32f1f95a523d042ca596 Mon Sep 17 00:00:00 2001 From: Tyler Hall Date: Mon, 8 Jan 2024 20:54:26 +0000 Subject: [PATCH] docs: remove section on OpenAI translation in languages README, since it is not yet implemented #3 --- languages/README.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/languages/README.md b/languages/README.md index 15ad4b5..2aee1b1 100644 --- a/languages/README.md +++ b/languages/README.md @@ -3,7 +3,6 @@ - [Add a new language](#add-a-new-language) -- [OpenAI translation](#openai-translation) @@ -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 -```