Set language environment variables
N8N_DEFAULT_LOCALE=zh-CN
Replace editor-ui package
Go to release to find the corresponding n8n version, download and decompress, and then map the docker path
/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist
Complete test docker command
docker run -it --rm --name n8ntest
-p 15678:5678
-v /n8n/n8n-editor-ui/dist:/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist
-e N8N_DEFAULT_LOCALE=zh-CN
-e N8N_SECURE_COOKIE=false
n8nio/n8n
For other languages
you can fork project, then add the language json file, and then compile and package
#Principle
editor-ui supports i18, but the language package is not open
Manually add zh-CN.json to editor-ui i18n, and then recompile
Setting the language in the environment allows you to use Chinese normally