Skip to content

Commit b79755d

Browse files
taosinkiss-fire
andauthored
feat: update zh-hans i18n (#4531)
* feat: update zh-hans i18n * Update zh-Hans.json Co-authored-by: taosin <[email protected]> --------- Co-authored-by: KissFire <[email protected]>
1 parent 2e9b936 commit b79755d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

web/src/components/MemoDisplaySettingMenu.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const MemoDisplaySettingMenu = observer(({ className }: Props) => {
3838
</Select>
3939
</div>
4040
<div className="w-full flex flex-row justify-between items-center">
41-
<span className="text-sm shrink-0 mr-3">Layout</span>
41+
<span className="text-sm shrink-0 mr-3">{t("memo.layout")}</span>
4242
<Select
4343
value={viewStore.state.layout}
4444
onChange={(_, value) =>
@@ -47,8 +47,8 @@ const MemoDisplaySettingMenu = observer(({ className }: Props) => {
4747
})
4848
}
4949
>
50-
<Option value={"LIST"}>{"List"}</Option>
51-
<Option value={"MASONRY"}>{"Masonry"}</Option>
50+
<Option value={"LIST"}>{t("memo.list")}</Option>
51+
<Option value={"MASONRY"}>{t("memo.masonry")}</Option>
5252
</Select>
5353
</div>
5454
</div>

web/src/locales/en.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@
160160
"private": "Private",
161161
"protected": "Workspace",
162162
"public": "Public"
163-
}
163+
},
164+
"layout": "Layout",
165+
"list": "List",
166+
"masonry": "Masonry"
164167
},
165168
"message": {
166169
"archived-successfully": "Archived successfully",

web/src/locales/zh-Hans.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@
156156
"private": "私有",
157157
"protected": "工作区",
158158
"public": "公开"
159-
}
159+
},
160+
"layout": "布局",
161+
"list": "列表模式",
162+
"masonry": "瀑布流模式"
160163
},
161164
"message": {
162165
"archived-successfully": "归档成功",

0 commit comments

Comments
 (0)