i18n: convert dashboard text fields to otext+i18n:true for translation

All Chinese text strings converted to use otext with i18n:true so
bricks framework can look up translations. Template strings with
{{...}} left as text (correct - dynamic content).

Affected files:
- index.ui: 数据概览, 快捷入口, 模型管理, 用户管理, 知识库, 异常记录,
  用户消费排行, 用户调用排行, 供应商交易排行, 供应商调用排行, Top 3 模型
- stat_*.ui: 今日活跃用户, 在线用户, 记账异常, 本月新增用户, 今日消费金额,
  今日调用笔数, 组织机构数, 用户总数
- today_amount.ui, today_usage.ui: 今日交易金额, 今日调用笔数
- accounting_errors.ui, concurrent_users.ui, total_users.ui
- table_top_*.ui: 暂无数据
- top_users_amount.ui: 用户金额TOP5, 排名, 用户, 金额, 调用次数
This commit is contained in:
yumoqing 2026-05-28 14:53:20 +08:00
parent 9f8e5a6d1c
commit cdd812f935
19 changed files with 111 additions and 72 deletions

View File

@ -12,10 +12,11 @@
{
"widgettype": "Text",
"options": {
"text": "记账错误笔数",
"fontSize": "14px",
"color": "#888",
"marginBottom": "8px"
"marginBottom": "8px",
"otext": "记账错误笔数",
"i18n": true
}
},
{
@ -29,4 +30,4 @@
}
}
]
}
}

View File

@ -12,10 +12,11 @@
{
"widgettype": "Text",
"options": {
"text": "当前并发用户",
"fontSize": "14px",
"color": "#888",
"marginBottom": "8px"
"marginBottom": "8px",
"otext": "当前并发用户",
"i18n": true
}
},
{
@ -29,4 +30,4 @@
}
}
]
}
}

View File

@ -17,9 +17,10 @@
{
"widgettype": "Title2",
"options": {
"text": "数据概览",
"color": "#F1F5F9",
"fontWeight": "700"
"fontWeight": "700",
"otext": "数据概览",
"i18n": true
}
},
{
@ -148,9 +149,10 @@
{
"widgettype": "Title4",
"options": {
"text": "Top 3 模型(今日调用)",
"color": "#F1F5F9",
"fontWeight": "600"
"fontWeight": "600",
"otext": "Top 3 模型(今日调用)",
"i18n": true
}
},
{
@ -203,10 +205,11 @@
{
"widgettype": "Title4",
"options": {
"text": "快捷入口",
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px"
"marginBottom": "16px",
"otext": "快捷入口",
"i18n": true
}
},
{
@ -253,11 +256,12 @@
{
"widgettype": "Text",
"options": {
"text": "模型管理",
"color": "#FFFFFF",
"fontWeight": "600",
"fontSize": "13px",
"marginTop": "8px"
"marginTop": "8px",
"otext": "模型管理",
"i18n": true
}
}
]
@ -301,11 +305,12 @@
{
"widgettype": "Text",
"options": {
"text": "用户管理",
"color": "#FFFFFF",
"fontWeight": "600",
"fontSize": "13px",
"marginTop": "8px"
"marginTop": "8px",
"otext": "用户管理",
"i18n": true
}
}
]
@ -349,10 +354,11 @@
{
"widgettype": "Text",
"options": {
"text": "知识库",
"color": "#E2E8F0",
"fontSize": "13px",
"marginTop": "8px"
"marginTop": "8px",
"otext": "知识库",
"i18n": true
}
}
]
@ -396,10 +402,11 @@
{
"widgettype": "Text",
"options": {
"text": "异常记录",
"color": "#E2E8F0",
"fontSize": "13px",
"marginTop": "8px"
"marginTop": "8px",
"otext": "异常记录",
"i18n": true
}
}
]
@ -426,10 +433,11 @@
{
"widgettype": "Title4",
"options": {
"text": "用户消费排行Top 5",
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px"
"marginBottom": "16px",
"otext": "用户消费排行Top 5",
"i18n": true
}
},
{
@ -456,10 +464,11 @@
{
"widgettype": "Title4",
"options": {
"text": "用户调用排行Top 5",
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px"
"marginBottom": "16px",
"otext": "用户调用排行Top 5",
"i18n": true
}
},
{
@ -493,10 +502,11 @@
{
"widgettype": "Title4",
"options": {
"text": "供应商交易排行(金额 Top 5",
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px"
"marginBottom": "16px",
"otext": "供应商交易排行(金额 Top 5",
"i18n": true
}
},
{
@ -522,10 +532,11 @@
{
"widgettype": "Title4",
"options": {
"text": "供应商调用排行(数量 Top 5",
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "16px"
"marginBottom": "16px",
"otext": "供应商调用排行(数量 Top 5",
"i18n": true
}
},
{
@ -541,4 +552,4 @@
]
}
]
}
}

View File

@ -42,11 +42,12 @@
{
"widgettype": "Text",
"options": {
"text": "今日活跃用户",
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px"
"marginTop": "4px",
"otext": "今日活跃用户",
"i18n": true
}
}
]
}
}

View File

@ -42,11 +42,12 @@
{
"widgettype": "Text",
"options": {
"text": "在线用户",
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px"
"marginTop": "4px",
"otext": "在线用户",
"i18n": true
}
}
]
}
}

View File

@ -42,11 +42,12 @@
{
"widgettype": "Text",
"options": {
"text": "记账异常",
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px"
"marginTop": "4px",
"otext": "记账异常",
"i18n": true
}
}
]
}
}

View File

@ -42,11 +42,12 @@
{
"widgettype": "Text",
"options": {
"text": "本月新增用户",
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px"
"marginTop": "4px",
"otext": "本月新增用户",
"i18n": true
}
}
]
}
}

View File

@ -42,11 +42,12 @@
{
"widgettype": "Text",
"options": {
"text": "今日消费金额",
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px"
"marginTop": "4px",
"otext": "今日消费金额",
"i18n": true
}
}
]
}
}

View File

@ -43,11 +43,12 @@
{
"widgettype": "Text",
"options": {
"text": "今日调用笔数",
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px"
"marginTop": "4px",
"otext": "今日调用笔数",
"i18n": true
}
}
]
}
}

View File

@ -42,11 +42,12 @@
{
"widgettype": "Text",
"options": {
"text": "组织机构数",
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px"
"marginTop": "4px",
"otext": "组织机构数",
"i18n": true
}
}
]
}
}

View File

@ -42,11 +42,12 @@
{
"widgettype": "Text",
"options": {
"text": "用户总数",
"fontSize": "14px",
"color": "#94A3B8",
"marginTop": "4px"
"marginTop": "4px",
"otext": "用户总数",
"i18n": true
}
}
]
}
}

View File

@ -65,7 +65,9 @@
{
"widgettype": "Text",
"options": {
"text": "暂无数据",
"otext": "暂无数据",
"i18n": true,
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center",

View File

@ -65,7 +65,9 @@
{
"widgettype": "Text",
"options": {
"text": "暂无数据",
"otext": "暂无数据",
"i18n": true,
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center",

View File

@ -65,7 +65,9 @@
{
"widgettype": "Text",
"options": {
"text": "暂无数据",
"otext": "暂无数据",
"i18n": true,
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center",

View File

@ -65,7 +65,9 @@
{
"widgettype": "Text",
"options": {
"text": "暂无数据",
"otext": "暂无数据",
"i18n": true,
"color": "#64748B",
"fontSize": "14px",
"textAlign": "center",

View File

@ -12,10 +12,11 @@
{
"widgettype": "Text",
"options": {
"text": "今日交易金额",
"fontSize": "14px",
"color": "#888",
"marginBottom": "8px"
"marginBottom": "8px",
"otext": "今日交易金额",
"i18n": true
}
},
{
@ -29,4 +30,4 @@
}
}
]
}
}

View File

@ -12,10 +12,11 @@
{
"widgettype": "Text",
"options": {
"text": "今日调用笔数",
"fontSize": "14px",
"color": "#888",
"marginBottom": "8px"
"marginBottom": "8px",
"otext": "今日调用笔数",
"i18n": true
}
},
{
@ -29,4 +30,4 @@
}
}
]
}
}

View File

@ -10,7 +10,9 @@
{
"widgettype": "Text",
"options": {
"text": "用户金额 TOP 5今日",
"otext": "用户金额 TOP 5今日",
"i18n": true,
"fontSize": "16px",
"fontWeight": "bold",
"color": "#333",
@ -27,10 +29,14 @@
"widgettype": "HBox",
"options": {"bgcolor": "#f5f5f5", "padding": "8px 12px", "borderRadius": "4px"},
"subwidgets": [
{"widgettype": "Text", "options": {"text": "排名", "fontSize": "12px", "color": "#888", "width": "50px"}},
{"widgettype": "Text", "options": {"text": "用户", "fontSize": "12px", "color": "#888", "flex": "1"}},
{"widgettype": "Text", "options": {"text": "金额", "fontSize": "12px", "color": "#888", "width": "100px", "textAlign": "right"}},
{"widgettype": "Text", "options": {"text": "笔数", "fontSize": "12px", "color": "#888", "width": "60px", "textAlign": "right"}}
{"widgettype": "Text", "options": {"otext": "排名",
"i18n": true, "fontSize": "12px", "color": "#888", "width": "50px"}},
{"widgettype": "Text", "options": {"otext": "用户",
"i18n": true, "fontSize": "12px", "color": "#888", "flex": "1"}},
{"widgettype": "Text", "options": {"otext": "金额",
"i18n": true, "fontSize": "12px", "color": "#888", "width": "100px", "textAlign": "right"}},
{"widgettype": "Text", "options": {"otext": "笔数",
"i18n": true, "fontSize": "12px", "color": "#888", "width": "60px", "textAlign": "right"}}
]
},
{% for item in rows %}
@ -50,7 +56,8 @@
{% else %}
{
"widgettype": "Text",
"options": {"text": "暂无数据", "fontSize": "14px", "color": "#999", "textAlign": "center"}
"options": {"otext": "暂无数据",
"i18n": true, "fontSize": "14px", "color": "#999", "textAlign": "center"}
}
{% endif %}
]

View File

@ -12,10 +12,11 @@
{
"widgettype": "Text",
"options": {
"text": "用户总数",
"fontSize": "14px",
"color": "#888",
"marginBottom": "8px"
"marginBottom": "8px",
"otext": "用户总数",
"i18n": true
}
},
{
@ -29,4 +30,4 @@
}
}
]
}
}