i18n: 实时卡片+index.ui标签改用otext/i18n,补全4语言翻译

This commit is contained in:
yumoqing 2026-07-24 14:04:03 +08:00
parent 1af03bf195
commit a44060f185
12 changed files with 49 additions and 17 deletions

View File

@ -1,12 +1,20 @@
{ {
"API Key排行": "API Key Ranking", "API Key排行": "API Key Ranking",
"供应商性价比": "Provider Cost-Performance", "供应商性价比": "Provider Cost-Performance",
"供应商性价比对比": "Provider ROI Comparison",
"供应商排行": "Provider Ranking", "供应商排行": "Provider Ranking",
"币种分布": "Currency Distribution", "币种分布": "Currency Distribution",
"我的模型(按金额Top5)": "My Models (Top 5 by Amount)", "我的模型(按金额Top5)": "My Models (Top 5 by Amount)",
"模型性能排行": "Model Performance Ranking", "模型性能排行": "Model Performance Ranking",
"热门模型": "Popular Models", "热门模型": "Popular Models",
"用户排行": "User Ranking", "用户排行": "User Ranking",
"财务概览": "Financial Overview" "财务概览": "Financial Overview",
"今天调用": "Today",
"用户": "Users",
"今日调用笔数": "Today Calls",
"今日交易金额": "Today Amount",
"用户总数": "Total Users",
"今日活跃": "Today Active",
"在线用户": "Online Users",
"成功率": "Success Rate",
"失败数": "Failed"
} }

View File

@ -1,12 +1,20 @@
{ {
"API Key排行": "APIキーランキング", "API Key排行": "APIキーランキング",
"供应商性价比": "プロバイダーコストパフォーマンス", "供应商性价比": "プロバイダーコストパフォーマンス",
"供应商性价比对比": "プロバイダーROI比較",
"供应商排行": "プロバイダーランキング", "供应商排行": "プロバイダーランキング",
"币种分布": "通貨分布", "币种分布": "通貨分布",
"我的模型(按金额Top5)": "マイモデル金額Top5", "我的模型(按金额Top5)": "マイモデル金額Top5",
"模型性能排行": "モデルパフォーマンスランキング", "模型性能排行": "モデルパフォーマンスランキング",
"热门模型": "人気モデル", "热门模型": "人気モデル",
"用户排行": "ユーザーランキング", "用户排行": "ユーザーランキング",
"财务概览": "財務概要" "财务概览": "財務概要",
"今天调用": "本日",
"用户": "ユーザー",
"今日调用笔数": "本日コール数",
"今日交易金额": "本日取引額",
"用户总数": "総ユーザー数",
"今日活跃": "本日アクティブ",
"在线用户": "オンラインユーザー",
"成功率": "成功率",
"失败数": "失敗数"
} }

View File

@ -1,12 +1,20 @@
{ {
"API Key排行": "API 키 랭킹", "API Key排行": "API 키 랭킹",
"供应商性价比": "공급업체 가성비", "供应商性价比": "공급업체 가성비",
"供应商性价比对比": "공급업체 ROI 비교",
"供应商排行": "공급업체 랭킹", "供应商排行": "공급업체 랭킹",
"币种分布": "통화 분포", "币种分布": "통화 분포",
"我的模型(按金额Top5)": "내 모델 (금액 Top5)", "我的模型(按金额Top5)": "내 모델 (금액 Top5)",
"模型性能排行": "모델 성능 랭킹", "模型性能排行": "모델 성능 랭킹",
"热门模型": "인기 모델", "热门模型": "인기 모델",
"用户排行": "사용자 랭킹", "用户排行": "사용자 랭킹",
"财务概览": "재무 개요" "财务概览": "재무 개요",
"今天调用": "오늘",
"用户": "사용자",
"今日调用笔数": "오늘 호출",
"今日交易金额": "오늘 거래액",
"用户总数": "전체 사용자",
"今日活跃": "오늘 활성",
"在线用户": "온라인 사용자",
"成功率": "성공률",
"失败数": "실패수"
} }

View File

@ -1,12 +1,20 @@
{ {
"API Key排行": "API Key排行", "API Key排行": "API Key排行",
"供应商性价比": "供应商性价比", "供应商性价比": "供应商性价比",
"供应商性价比对比": "供应商性价比对比",
"供应商排行": "供应商排行", "供应商排行": "供应商排行",
"币种分布": "币种分布", "币种分布": "币种分布",
"我的模型(按金额Top5)": "我的模型(按金额Top5)", "我的模型(按金额Top5)": "我的模型(按金额Top5)",
"模型性能排行": "模型性能排行", "模型性能排行": "模型性能排行",
"热门模型": "热门模型", "热门模型": "热门模型",
"用户排行": "用户排行", "用户排行": "用户排行",
"财务概览": "财务概览" "财务概览": "财务概览",
"今天调用": "今天调用",
"用户": "用户",
"今日调用笔数": "今日调用笔数",
"今日交易金额": "今日交易金额",
"用户总数": "用户总数",
"今日活跃": "今日活跃",
"在线用户": "在线用户",
"成功率": "成功率",
"失败数": "失败数"
} }

View File

@ -15,7 +15,7 @@
"widgettype": "HBox", "widgettype": "HBox",
"options": {"width": "100%", "alignItems": "center", "marginBottom": "8px"}, "options": {"width": "100%", "alignItems": "center", "marginBottom": "8px"},
"subwidgets": [ "subwidgets": [
{"widgettype": "Text", "options": {"fontWeight": "600", "fontSize": "13px", "text": "今天调用", "color": "var(--sage-text-primary)"}}, {"widgettype": "Text", "options": {"fontWeight": "600", "fontSize": "13px", "otext": "今天调用", "i18n": true, "color": "var(--sage-text-primary)"}},
{"widgettype": "Filler"} {"widgettype": "Filler"}
] ]
}, },
@ -34,7 +34,7 @@
"widgettype": "HBox", "widgettype": "HBox",
"options": {"width": "100%", "alignItems": "center", "marginBottom": "8px"}, "options": {"width": "100%", "alignItems": "center", "marginBottom": "8px"},
"subwidgets": [ "subwidgets": [
{"widgettype": "Text", "options": {"fontWeight": "600", "fontSize": "13px", "text": "用户", "color": "var(--sage-text-primary)"}}, {"widgettype": "Text", "options": {"fontWeight": "600", "fontSize": "13px", "otext": "用户", "i18n": true, "color": "var(--sage-text-primary)"}},
{"widgettype": "Filler"} {"widgettype": "Filler"}
] ]
}, },

View File

@ -1,2 +1,2 @@
{% set cnt = j2_active_today(request) %} {% set cnt = j2_active_today(request) %}
{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"今日活跃","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]} {"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"otext":"今日活跃","i18n":true,"fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]}

View File

@ -1,2 +1,2 @@
{% set amt = j2_realtime_amount(request) %} {% set amt = j2_realtime_amount(request) %}
{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"今日交易金额","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":{{json.dumps('¥' + ('%.2f' % (amt|float)), ensure_ascii=False)}},"fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]} {"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"otext":"今日交易金额","i18n":true,"fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":{{json.dumps('¥' + ('%.2f' % (amt|float)), ensure_ascii=False)}},"fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]}

View File

@ -1,2 +1,2 @@
{% set cnt = j2_realtime_calls(request) %} {% set cnt = j2_realtime_calls(request) %}
{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"今日调用笔数","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]} {"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"otext":"今日调用笔数","i18n":true,"fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]}

View File

@ -1,2 +1,2 @@
{% set cnt = j2_scoped_fail_count(request) %} {% set cnt = j2_scoped_fail_count(request) %}
{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"失败数","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]} {"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"otext":"失败数","i18n":true,"fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]}

View File

@ -1,2 +1,2 @@
{% set cnt = j2_online_users(request) %} {% set cnt = j2_online_users(request) %}
{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"在线用户","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]} {"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"otext":"在线用户","i18n":true,"fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]}

View File

@ -1,2 +1,2 @@
{% set rate = j2_scoped_success_rate(request) %} {% set rate = j2_scoped_success_rate(request) %}
{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"成功率","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{rate}}%","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]} {"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"otext":"成功率","i18n":true,"fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{rate}}%","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]}

View File

@ -1,2 +1,2 @@
{% set cnt = j2_total_users(request) %} {% set cnt = j2_total_users(request) %}
{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"用户总数","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]} {"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"otext":"用户总数","i18n":true,"fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":"{{cnt}}","fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]}