This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-theme-builder.git

commit 77945317b29fbf406121985a89fc133bbc55a686
Author: Ovilia <[email protected]>
AuthorDate: Wed Sep 10 16:30:08 2025 +0800

    feat: update i18n
---
 src/locales/en.json | 34 +++++++++++++++++++++++++++++++---
 src/locales/zh.json | 36 ++++++++++++++++++++++++++++++++----
 2 files changed, 63 insertions(+), 7 deletions(-)

diff --git a/src/locales/en.json b/src/locales/en.json
index 618a213..ea72719 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -6,7 +6,11 @@
     "reset": "Reset",
     "help": "Help",
     "cancel": "Cancel",
-    "confirm": "Confirm"
+    "confirm": "Confirm",
+    "ok": "OK",
+    "copyCode": "Copy Code",
+    "close": "Close",
+    "gotIt": "Got it"
   },
   "panel": {
     "functions": "Functions",
@@ -52,7 +56,6 @@
     "all": "All Axes"
   },
   "preview": {
-    "title": "Chart Preview",
     "chartPreview": "Chart Preview"
   },
   "language": {
@@ -63,6 +66,31 @@
   "modals": {
     "themeCodeTitle": "Theme Code",
     "importThemeTitle": "Import Theme",
-    "helpTitle": "Help"
+    "helpTitle": "Help",
+    "formatSelection": "Select Format",
+    "formatSelectionMsg": "Please select a format for the theme file:",
+    "jsFormat": "JavaScript File",
+    "jsonFormat": "JSON File",
+    "jsUsageTitle": "JavaScript Theme File Usage",
+    "jsUsageStep1": "Save the downloaded {filename} file to your project",
+    "jsUsageStep2": "Include this file in your HTML:",
+    "jsUsageStep3": "Use the theme when creating a chart:",
+    "jsUsageTip": "💡 The second parameter is the theme name registered in the 
JS file.",
+    "downloadFailed": "Download failed, please try again",
+    "exportSuccess": "Configuration exported successfully!",
+    "exportFailed": "Export failed, please try again",
+    "chartsRefreshed": "Charts refreshed",
+    "resetConfirm": "Are you sure you want to reset to the default theme? This 
action cannot be undone.",
+    "themeReset": "Theme has been reset",
+    "selectCodeFormat": "Select code format to view:",
+    "codeGenFailed": "Code generation failed",
+    "codeCopied": "Code copied to clipboard",
+    "copyFailed": "Copy failed, please copy manually",
+    "selectJsonFile": "Please select a JSON format configuration file!",
+    "useExportedFile": "Please use a JSON configuration file exported from 
this site!",
+    "oldVersionPrompt": "The imported theme is from an older version, some 
properties may not be correctly set. Continue importing?",
+    "importSuccess": "Theme imported successfully!",
+    "invalidFormat": "Configuration file format error, please use a JSON file 
exported from this site!",
+    "fileReadFailed": "File read failed, please try again"
   }
 }
diff --git a/src/locales/zh.json b/src/locales/zh.json
index b377a88..127f5d0 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -6,7 +6,11 @@
     "reset": "复原",
     "help": "帮助",
     "cancel": "取消",
-    "confirm": "确定"
+    "confirm": "确定",
+    "ok": "好的",
+    "copyCode": "复制代码",
+    "close": "关闭",
+    "gotIt": "知道了"
   },
   "panel": {
     "functions": "功能",
@@ -52,8 +56,7 @@
     "all": "所有坐标轴"
   },
   "preview": {
-    "title": "图表预览",
-    "chartPreview": "Chart Preview"
+    "chartPreview": "图表预览"
   },
   "language": {
     "title": "语言",
@@ -63,6 +66,31 @@
   "modals": {
     "themeCodeTitle": "主题代码",
     "importThemeTitle": "导入主题",
-    "helpTitle": "帮助"
+    "helpTitle": "帮助",
+    "formatSelection": "选择下载格式",
+    "formatSelectionMsg": "请选择要下载的主题文件格式:",
+    "jsFormat": "JavaScript 文件",
+    "jsonFormat": "JSON 文件",
+    "jsUsageTitle": "JavaScript 主题文件使用方法",
+    "jsUsageStep1": "将下载的 {filename} 文件保存到项目中",
+    "jsUsageStep2": "在 HTML 中引入此文件:",
+    "jsUsageStep3": "创建图表时使用主题:",
+    "jsUsageTip": "💡 第二个参数是在 JS 文件中注册的主题名称。",
+    "downloadFailed": "下载失败,请重试",
+    "exportSuccess": "配置导出成功!",
+    "exportFailed": "导出失败,请重试",
+    "chartsRefreshed": "图表已刷新",
+    "resetConfirm": "确定要重置为默认主题吗?此操作不可撤销。",
+    "themeReset": "主题已重置",
+    "selectCodeFormat": "选择要查看的代码格式:",
+    "codeGenFailed": "代码生成失败",
+    "codeCopied": "代码已复制到剪贴板",
+    "copyFailed": "复制失败,请手动复制",
+    "selectJsonFile": "请选择 JSON 格式的配置文件!",
+    "useExportedFile": "请使用从本网站导出的 JSON 配置文件!",
+    "oldVersionPrompt": "导入的主题版本较低,某些属性可能无法正确设置。是否继续导入?",
+    "importSuccess": "主题导入成功!",
+    "invalidFormat": "配置文件格式错误,请使用从本网站导出的 JSON 文件!",
+    "fileReadFailed": "文件读取失败,请重试"
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to