Multi-language¶
The multilingual support of FastAPI-Amis-Admin is divided into multilingual for the internal components of Amis on the front end and multilingual for the constant text on the back end.
- The default built-in support languages are:
en_US,zh_CN. For other language extensions, please refer to Amis Multilanguage. - From version 0.1.1 onwards, try setting the environment variable
LANGUAGE/LANG> OS default language > Englishen_US. - You can freely switch the language by adding the following code to the top of the project entry file. For example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |