chore: 停止追踪生成的 i18n 文件,添加语言切换图标
- 从 git 删除 wwwroot/i18n/{zh,en,jp,ko}/ 生成文件(由 merge_i18n.py 生成)
- 添加 .gitignore 排除生成目录
- 新增 language.svg (globe icon) 替换纯文字语言切换器
- language.ui 改为 VBox: globe图标 + 语言代码标签
This commit is contained in:
parent
7d6362b1d4
commit
ed7cd6ba54
90
.gitignore
vendored
90
.gitignore
vendored
@ -1,85 +1,5 @@
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*.egg-info/
|
||||
dist/
|
||||
build/
|
||||
|
||||
# Virtual environment
|
||||
py3/
|
||||
|
||||
# Logs
|
||||
logs/
|
||||
|
||||
# PID files
|
||||
*.pid
|
||||
|
||||
# Generated files
|
||||
*.pem
|
||||
*.key
|
||||
merchant_*.pem
|
||||
alipay_*.pem
|
||||
pay_*.pem
|
||||
|
||||
# Database
|
||||
models/mysql.ddl.sql
|
||||
|
||||
# pkgs (submodules should be in their own repos)
|
||||
pkgs/
|
||||
|
||||
# wwwroot temp files
|
||||
wwwroot/.DS_Store
|
||||
wwwroot/*.bak*
|
||||
wwwroot/tmp/
|
||||
|
||||
# Migration scripts (run once, not needed in repo)
|
||||
migrate_*.py
|
||||
reset_*.py
|
||||
check_*.py
|
||||
set_*.sh
|
||||
setup_*.sh
|
||||
|
||||
# Sage runtime
|
||||
sage.pid
|
||||
sage_backend.pid
|
||||
|
||||
# Swap files
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# Module symlinks (created by build.sh)
|
||||
wwwroot/accounting
|
||||
wwwroot/appbase
|
||||
wwwroot/bricks
|
||||
wwwroot/charge
|
||||
wwwroot/cpcc
|
||||
wwwroot/dapi
|
||||
wwwroot/dashboard_for_sage
|
||||
wwwroot/discount
|
||||
wwwroot/filemgr
|
||||
wwwroot/harnessed_agent
|
||||
wwwroot/harnessed_reasoning
|
||||
wwwroot/hermes-web-cli
|
||||
wwwroot/llmage
|
||||
wwwroot/msp
|
||||
wwwroot/platformbiz
|
||||
wwwroot/pricing
|
||||
wwwroot/product_management
|
||||
wwwroot/rag
|
||||
wwwroot/rbac
|
||||
wwwroot/reallife_asset
|
||||
wwwroot/shell_theme.css
|
||||
wwwroot/shell_theme.js
|
||||
wwwroot/supplychain
|
||||
wwwroot/uapi
|
||||
wwwroot/unipay
|
||||
wwwroot/voucher
|
||||
|
||||
# Runtime generated files (created by build.sh)
|
||||
conf/config.json
|
||||
stop.sh
|
||||
start.sh
|
||||
sage.service
|
||||
*.pyc
|
||||
*.pyo
|
||||
.DS_Store
|
||||
# Generated i18n files — run merge_i18n.py to regenerate
|
||||
wwwroot/i18n/zh/
|
||||
wwwroot/i18n/en/
|
||||
wwwroot/i18n/jp/
|
||||
wwwroot/i18n/ko/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
5
wwwroot/i18n/language.svg
Normal file
5
wwwroot/i18n/language.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="10"/>
|
||||
<line x1="2" y1="12" x2="22" y2="12"/>
|
||||
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 347 B |
@ -1,13 +1,32 @@
|
||||
{
|
||||
"id":"language",
|
||||
"widgettype":"Text",
|
||||
"widgettype":"VBox",
|
||||
"options":{
|
||||
"tip":"change UI language",
|
||||
"i18n":true,
|
||||
"otext":"{{params_kw._lang}}",
|
||||
"cwidth": 4,
|
||||
"cwidth":4,
|
||||
"css":"clickable"
|
||||
},
|
||||
"subwidgets":[
|
||||
{
|
||||
"widgettype":"Svg",
|
||||
"options":{
|
||||
"url":"{{entire_url('language.svg')}}",
|
||||
"rate":2,
|
||||
"valign":"center",
|
||||
"halign":"center"
|
||||
}
|
||||
},
|
||||
{
|
||||
"widgettype":"Text",
|
||||
"id":"lang_label",
|
||||
"options":{
|
||||
"i18n":false,
|
||||
"otext":"{{params_kw._lang}}",
|
||||
"cwidth":4,
|
||||
"css":"text-center",
|
||||
"cfontsize":0.6
|
||||
}
|
||||
}
|
||||
],
|
||||
"binds":[
|
||||
{
|
||||
"wid":"self",
|
||||
@ -16,7 +35,7 @@
|
||||
"target":"Popup",
|
||||
"popup_options":{
|
||||
"eventpos":true,
|
||||
"cwidth": 11,
|
||||
"cwidth":11,
|
||||
"cheight":10,
|
||||
"dismiss_events":["command"]
|
||||
},
|
||||
@ -28,7 +47,7 @@
|
||||
"wid":"app",
|
||||
"event":"lang",
|
||||
"actiontype":"script",
|
||||
"target":"self",
|
||||
"target":"lang_label",
|
||||
"script":"this.set_otext(bricks.app.lang)"
|
||||
}
|
||||
]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user