Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
4cd2aa6f
Unverified
Commit
4cd2aa6f
authored
Feb 12, 2025
by
xt
Committed by
GitHub
Feb 12, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: chinese localization enhancements (#4397)
* Chinese localization enhancements * Fix for eslint
parent
7a57b5c6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
10 deletions
+54
-10
CreateShortcutDialog.tsx
web/src/components/CreateShortcutDialog.tsx
+4
-4
MemoRelatedSettings.tsx
web/src/components/Settings/MemoRelatedSettings.tsx
+1
-1
WorkspaceSection.tsx
web/src/components/Settings/WorkspaceSection.tsx
+1
-1
en.json
web/src/locales/en.json
+4
-1
zh-Hans.json
web/src/locales/zh-Hans.json
+44
-3
No files found.
web/src/components/CreateShortcutDialog.tsx
View file @
4cd2aa6f
...
...
@@ -64,22 +64,22 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
return
(
<>
<
div
className=
"dialog-header-container"
>
<
p
className=
"title-text"
>
{
`${isCreating ?
"Create" : "Edit"} Shortcut
`
}
</
p
>
<
p
className=
"title-text"
>
{
`${isCreating ?
t("common.create") : t("common.edit")} ${t("common.shortcuts")}
`
}
</
p
>
<
Button
size=
"sm"
variant=
"plain"
onClick=
{
()
=>
destroy
()
}
>
<
XIcon
className=
"w-5 h-auto"
/>
</
Button
>
</
div
>
<
div
className=
"dialog-content-container max-w-md min-w-72"
>
<
div
className=
"w-full flex flex-col justify-start items-start mb-3"
>
<
span
className=
"text-sm whitespace-nowrap mb-1"
>
Title
</
span
>
<
span
className=
"text-sm whitespace-nowrap mb-1"
>
{
t
(
"common.title"
)
}
</
span
>
<
Input
className=
"w-full"
type=
"text"
placeholder=
""
value=
{
shortcut
.
title
}
onChange=
{
onShortcutTitleChange
}
/>
<
span
className=
"text-sm whitespace-nowrap mt-3 mb-1"
>
Filter
</
span
>
<
span
className=
"text-sm whitespace-nowrap mt-3 mb-1"
>
{
t
(
"common.filter"
)
}
</
span
>
<
Textarea
className=
"w-full"
minRows=
{
3
}
maxRows=
{
5
}
size=
"sm"
placeholder=
{
"Shortcut filter"
}
placeholder=
{
t
(
"common.shortcut-filter"
)
}
value=
{
shortcut
.
filter
}
onChange=
{
onShortcutFilterChange
}
/>
...
...
web/src/components/Settings/MemoRelatedSettings.tsx
View file @
4cd2aa6f
...
...
@@ -144,7 +144,7 @@ const MemoRelatedSettings = () => {
})
}
<
Input
className=
"w-32 !rounded-full !pl-3"
placeholder=
"Input"
placeholder=
{
t
(
"common.input"
)
}
size=
"sm"
value=
{
editingReaction
}
onChange=
{
(
event
)
=>
setEditingReaction
(
event
.
target
.
value
.
trim
())
}
...
...
web/src/components/Settings/WorkspaceSection.tsx
View file @
4cd2aa6f
...
...
@@ -75,7 +75,7 @@ const WorkspaceSection = () => {
</
Button
>
</
div
>
<
Divider
/>
<
p
className=
"font-medium text-gray-700 dark:text-gray-500"
>
General
</
p
>
<
p
className=
"font-medium text-gray-700 dark:text-gray-500"
>
{
t
(
"setting.system-section.title"
)
}
</
p
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
span
>
{
t
(
"setting.system-section.additional-style"
)
}
</
span
>
</
div
>
...
...
web/src/locales/en.json
View file @
4cd2aa6f
...
...
@@ -82,7 +82,9 @@
"yourself"
:
"Yourself"
,
"shortcuts"
:
"Shortcuts"
,
"created-at"
:
"Created At"
,
"properties"
:
"Properties"
"properties"
:
"Properties"
,
"shortcut-filter"
:
"Shortcut filter"
,
"input"
:
"Input"
},
"days"
:
{
"fri"
:
"Fri"
,
...
...
@@ -295,6 +297,7 @@
},
"system"
:
"System"
,
"system-section"
:
{
"title"
:
"General"
,
"additional-script"
:
"Additional script"
,
"additional-script-placeholder"
:
"Additional JavaScript code"
,
"additional-style"
:
"Additional style"
,
...
...
web/src/locales/zh-Hans.json
View file @
4cd2aa6f
...
...
@@ -77,8 +77,11 @@
"version"
:
"版本"
,
"visibility"
:
"可见性"
,
"yourself"
:
"您自己"
,
"shortcuts"
:
"捷径"
,
"created-at"
:
"创建时间"
,
"properties"
:
"属性"
"properties"
:
"属性"
,
"shortcut-filter"
:
"捷径过滤器"
,
"input"
:
"输入"
},
"days"
:
{
"fri"
:
"五"
,
...
...
@@ -123,7 +126,13 @@
"to-do"
:
"待办"
,
"code"
:
"代码"
,
"remove-completed-task-list-items"
:
"移除已办"
,
"remove-completed-task-list-items-confirm"
:
"您确定要移除所有完成的待办吗?(此操作不可逆)"
"remove-completed-task-list-items-confirm"
:
"您确定要移除所有完成的待办吗?(此操作不可逆)"
,
"order-by"
:
"排序"
,
"display-time"
:
"展示时间"
,
"direction"
:
"排序方式"
,
"direction-desc"
:
"倒序"
,
"direction-asc"
:
"正序"
,
"no-memos"
:
"无备忘"
},
"message"
:
{
"archived-successfully"
:
"归档成功"
,
...
...
@@ -241,7 +250,8 @@
"template"
:
"模板"
,
"token-endpoint"
:
"令牌端点(Token Endpoint)"
,
"update-sso"
:
"更新单点登录"
,
"user-endpoint"
:
"用户端点(User Endpoint)"
"user-endpoint"
:
"用户端点(User Endpoint)"
,
"no-sso-found"
:
"没有 SSO 配置"
},
"storage"
:
"存储"
,
"storage-section"
:
{
...
...
@@ -279,6 +289,7 @@
},
"system"
:
"系统"
,
"system-section"
:
{
"title"
:
"一般设置"
,
"additional-script"
:
"自定义脚本"
,
"additional-script-placeholder"
:
"自定义 JavaScript 代码"
,
"additional-style"
:
"自定义样式"
,
...
...
@@ -308,6 +319,8 @@
},
"memo-related"
:
"备忘录"
,
"access-token-section"
:
{
"title"
:
"访问令牌"
,
"description"
:
"该账号下全部的访问令牌"
,
"create-dialog"
:
{
"created-at"
:
"创建时间"
,
"expires-at"
:
"过期时间"
,
...
...
@@ -315,6 +328,27 @@
"duration-8h"
:
"8 小时"
,
"duration-1m"
:
"1 个月"
}
},
"webhook-section"
:
{
"no-webhooks-found"
:
"没有 webhooks。"
},
"workspace-section"
:
{
"disallow-user-registration"
:
"禁用用户注册"
,
"disallow-password-auth"
:
"禁用密码登录"
,
"disallow-change-username"
:
"禁止修改用户名"
,
"disallow-change-nickname"
:
"禁止修改用户昵称"
,
"week-start-day"
:
"周开始日"
,
"saturday"
:
"周六"
,
"sunday"
:
"周日"
,
"monday"
:
"周一"
},
"memo-related-settings"
:
{
"title"
:
"备忘录相关设置"
,
"enable-link-preview"
:
"启用链接预览"
,
"enable-memo-comments"
:
"启用备忘录评论"
,
"enable-memo-location"
:
"启用备忘录定位"
,
"content-lenght-limit"
:
"内容长度限制(字节)"
,
"reactions"
:
"表态"
}
},
"tag"
:
{
...
...
@@ -324,5 +358,12 @@
"delete-confirm"
:
"您确定要删除此标签吗?所有相关的备忘录将会被归档。"
,
"delete-tag"
:
"删除标签"
,
"no-tag-found"
:
"没找到此标签"
},
"about"
:
{
"description"
:
"Memos 是一个隐私优先、轻量级的笔记解决方案,可以轻松捕捉和分享你的想法。"
,
"github-repository"
:
"GitHub 参保库"
,
"official-website"
:
"官网"
,
"blogs"
:
"博客"
,
"documents"
:
"文档"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment