From 66344619d383f7b4507a84a4108382eb844b4021 Mon Sep 17 00:00:00 2001 From: joaner <1726541+joaner@users.noreply.github.com> Date: Wed, 21 Oct 2026 19:58:00 +0900 Subject: [PATCH] fix(i18n): localize zh feature labels and copied toast --- .changeset/zh-feature-labels.md | 5 +++++ src/react/locales/zh.json | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 .changeset/zh-feature-labels.md diff --git a/.changeset/zh-feature-labels.md b/.changeset/zh-feature-labels.md new file mode 100644 index 0000000..997546f --- /dev/null +++ b/.changeset/zh-feature-labels.md @@ -0,0 +1,5 @@ +--- +"@ioai/lerobot-studio": patch +--- + +Localize remaining English labels in the zh locale: "全部特征", "特征" and "已复制". diff --git a/src/react/locales/zh.json b/src/react/locales/zh.json index 97d4973..aca99d6 100644 --- a/src/react/locales/zh.json +++ b/src/react/locales/zh.json @@ -173,7 +173,7 @@ "fieldExists": "字段存在", "positiveIntArray": "[正整数, ...]", "stringArrayMatchShape": "string[](长度=shape 末维)", - "objectWithFeatures": "含至少一个 feature 的对象", + "objectWithFeatures": "含至少一个特征的对象", "positiveIntMatchTotalEpisodes": "正整数,与 total_episodes 一致", "episodeLengthPositive": "每个 episode 的 length > 0", "nonNegativeIntCount": "非负整数(条数)", @@ -458,8 +458,8 @@ "label": "关节", "selectAll": "全选", "clear": "清空", - "searchPlaceholder": "搜索 Feature / 关节(action、left、observation.state…)", - "noResults": "未找到匹配的 Feature 或关节", + "searchPlaceholder": "搜索特征 / 关节(action、left、observation.state…)", + "noResults": "未找到匹配的特征或关节", "groupToggleTitle": "{{group}}:一键全选/取消全选", "selectedOverTotal": "已选/总数" }, @@ -539,25 +539,25 @@ }, "raw": { "title": "原始消息", - "select_feature": "选择 Feature", + "select_feature": "选择特征", "loading": "正在加载数据...", - "no_feature": "请选择一个 Feature 以查看原始数据", + "no_feature": "请选择一个特征以查看原始数据", "downloadBinary": "点击下载二进制数据", "copyImage": "复制图像", "copyingImage": "复制中", - "copiedImage": "COPIED", + "copiedImage": "已复制", "downloadedImage": "已下载 PNG", "imageDtype": "IMAGE", "videoDtype": "VIDEO", - "allFeatures": "全部 Features", + "allFeatures": "全部特征", "none": "未选择", "featuresCount": "{{count}} 项", - "features": "Features", + "features": "特征", "selectAll": "全选", "reset": "常用预设", "clear": "清空", - "searchFeature": "搜索 Features", - "noSearchResult": "未找到匹配 Features", + "searchFeature": "搜索特征", + "noSearchResult": "未找到匹配特征", "undefined": "未记录", "itemsCount": "{{count}} 项", "keysCount": "{{count}} 个键",