1.7 KiB
Language Definition
All supported languages are Defined in language.py. If you want to add a new language, you must first register it in the class Languages
UI Languages
Now this program's UI supports 简体中文 | 日本語 | 繁體中文 | English | Русский язык | Español | 한국어 | Français | Tiếng Việt | Türkçe | Polski | Українська Мова | Italiano | ภาษาไทย | Deutsch | Svenska | Nederlands | Čeština | Português
Most of them are machine translated from Chinese. You can translate manually to get more accurate translation.
Of all Defined languages, only a portion are already designated as UI supported languages. To add new UI language support, you need to register it in UILanguages
and add the translation file to files/lang/*.json
Translator Languages
TransLanguages
lists all supported languages accepted as translation APIs. To add a new language, in addition to adding it here, you also need to search the documentations of all APIs to see the language code they actually accept, and add it to the langmap of each LunaTranslator/translator/*.py
, which is very troublesome.