diff --git a/client/public/locales/zh/translation.json b/client/public/locales/zh/translation.json index eceb399..05f5105 100644 --- a/client/public/locales/zh/translation.json +++ b/client/public/locales/zh/translation.json @@ -59,6 +59,7 @@ "Execute": "执行", "Definitions": "定义", "Theorems": "定理", + "Theorem": "定理", "Not unlocked yet": "尚未解锁", "Not available in this level": "本关卡不提供", "A repository of learning games for the proof assistant <1>Lean (Lean 4) and its mathematical library <5>mathlib": "一个用于<1>Lean (Lean 4)及其数学库<5>mathlib的学习游戏库", @@ -87,8 +88,8 @@ "Mobile": "移动端", "Auto": "自动", "Desktop": "桌面端", - "Level": "", - "Introduction": "", - "Retry": "", - "Failed command": "" + "Level": "关卡", + "Introduction": "介绍", + "Retry": "重试", + "Failed command": "命令失败" } diff --git a/client/src/components/infoview/main.tsx b/client/src/components/infoview/main.tsx index 1161652..729600b 100644 --- a/client/src/components/infoview/main.tsx +++ b/client/src/components/infoview/main.tsx @@ -144,7 +144,7 @@ function ExerciseStatement({ data, showLeanStatement = false }) {
{data?.descrText && - {(data?.displayName ? `**Theorem** \`${data?.displayName}\`: ` : '') + t(data?.descrText, {ns: gameId})} + {(data?.displayName ? `**${t("Theorem")}** \`${data?.displayName}\`: ` : '') + t(data?.descrText, {ns: gameId})} } {data?.descrFormat && showLeanStatement &&