Skip to content

Commit

Permalink
🐞 fix(config.py): 修复默认语言
Browse files Browse the repository at this point in the history
  • Loading branch information
luting committed Nov 22, 2024
1 parent 9a323ef commit a9968b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&\
# 安装数据库驱动
pip install psycopg2 mysqlclient &&\
# 默认语言
sed -i "s/*BABEL_DEFAULT_LOCALE*/BABEL_DEFAULT_LOCALE = \"zh\"/" /app/superset/config.py &&\
sed -i "s/BABEL_DEFAULT_LOCALE = \"en\"/BABEL_DEFAULT_LOCALE = \"zh\"/" /app/superset/config.py &&\
sed -i "s/LANGUAGES = {}/LANGUAGES = {\"zh\": {\"flag\": \"cn\", \"name\": \"简体中文\"}, \"en\": {\"flag\": \"us\", \"name\": \"English\"}}/" /app/superset/config.py &&\
# 清理不需要的翻译
cd /app/superset/translations &&\
Expand Down

0 comments on commit a9968b0

Please sign in to comment.