one-api/translate-en.sh
ckt 19e1a56f20
Support Docker English translation and README change (#2)
* feat: update README

* feat: suppport `RUN_ENG_TRANSLATE`

* fix: dockerfile

* fix: i18n scripts

* fix: i18n script

* fix: i18n script

* chore: README
2023-08-10 15:30:12 +08:00

8 lines
259 B
Bash
Executable File

#!/bin/sh
if [ "$RUN_ENG_TRANSLATE" = "1" ]; then
python ./i18n/translate.py --repository_path . --json_file_path ./i18n/en.json
else
echo "RUN_ENG_TRANSLATE is not set to 1. We will not translate project to English (不会将项目翻译成英文)."
fi