Skip to content

Commit e1f1fbc

Browse files
committed
fix: fixed i18n for "Code"
1 parent 68ddb8c commit e1f1fbc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/locales/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ const en = {
295295

296296
explanationTemplate: {
297297
name: "Explanation Template",
298+
code: "Code",
298299
goToTheWebsiteToUse: "Go to the website to use",
299300
problemAddress: "Problem Address",
300301
problemDesc: "Problem Description",

src/locales/zh.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ const zh = {
208208
item3: "寻找最右边的满足条件的值",
209209
item4: "寻找最左插入位置",
210210
item5: "寻找最右插入位置",
211-
212211
},
213212
BFS: {
214213
item1: "带层信息",
@@ -236,7 +235,7 @@ const zh = {
236235
title: "前缀树",
237236
item1: "标准前缀树",
238237
},
239-
238+
240239
uf: {
241240
title: "并查集",
242241
item1: "不带权并查集",
@@ -287,6 +286,7 @@ const zh = {
287286

288287
explanationTemplate: {
289288
name: "题解模板",
289+
code: "代码",
290290
goToTheWebsiteToUse: "去网站使用",
291291
problemAddress: "题目地址",
292292
problemDesc: "题目描述",

src/solutionTemplate/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ ${desc}
114114
115115
- ${keyword}
116116
117-
## Code
117+
## ${t("Locale.explanationTemplate.code")}
118118
119119
- ${t("Locale.explanationTemplate.languageSupport")}${displayLanguage(
120120
language

0 commit comments

Comments
 (0)