Auto generate i18n static codes using ChatGPT
-
Crate a project id like 'ce405725-a840-468d-a57f-0bb95cbfbcfb'
-
Generate the first independent code module for multilingual using the ID above. Here is a Python example.
https://i18n.linkown.com/ce405725-a840-468d-a57f-0bb95cbfbcfb?file=languages.py&template=languages.py&languages=en,de,fr,az
languages.py
is download file name.
en,de,fr,az
is the languages.
- Put the downloaded file into your project.
- Replace call UText funcion in every UI string. When you run the software, you will find that the interface language of your software has not changed. Don't worry, during the running program, all the texts to be translated will be sent to the server.
- Download again, this time you will get a updated version that all text are translated. Set ULANG enviroment to other languages like
de
to check the effect.
Detail document check here
mv .env.example .env
pip install -r requirements.txt
uvicorn api:app --reload --port 1850 --host 0.0.0.0 --workers 1
replace https://i18n.linkown.com
with the server address of your server