mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: chinese localization enhancements (#4397)
* Chinese localization enhancements * Fix for eslint
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
@@ -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())}
|
||||
|
@@ -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>
|
||||
|
@@ -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",
|
||||
|
@@ -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": "文档"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user