chore: update chinese i18n (#4414)

pull/4416/head
taosin 2 weeks ago committed by GitHub
parent 9f25bb2034
commit 6fdfe6b118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -41,7 +41,7 @@ const MemoDetailSidebar = ({ memo, className, parentPage }: Props) => {
{!isEqual(memo.createTime, memo.updateTime) && (
<div className="w-full flex flex-col">
<p className="flex flex-row justify-start items-center w-full gap-1 mb-1 text-sm leading-6 text-gray-400 dark:text-gray-500 select-none">
<span>Last updated at</span>
<span>{t("common.last-updated-at")}</span>
</p>
<p className="text-sm text-gray-500 dark:text-gray-400">{memo.updateTime?.toLocaleString()}</p>
</div>

@ -4,6 +4,7 @@ import { Link } from "react-router-dom";
import { MemoRelation } from "@/types/proto/api/v1/memo_relation_service";
import { Memo } from "@/types/proto/api/v1/memo_service";
import { cn } from "@/utils";
import { useTranslate } from "@/utils/i18n";
interface Props {
memo: Memo;
@ -12,6 +13,7 @@ interface Props {
}
const MemoRelationListView = (props: Props) => {
const t = useTranslate();
const { memo, relations: relationList, parentPage } = props;
const referencingMemoList = relationList
.filter((relation) => relation.memo?.name === memo.name && relation.relatedMemo?.name !== memo.name)
@ -39,7 +41,7 @@ const MemoRelationListView = (props: Props) => {
onClick={() => setSelectedTab("referencing")}
>
<LinkIcon className="w-3 h-auto shrink-0 opacity-70" />
<span>Referencing</span>
<span>{t("common.referencing")}</span>
<span className="opacity-80">({referencingMemoList.length})</span>
</button>
)}

@ -85,7 +85,9 @@
"properties": "Properties",
"shortcut-filter": "Shortcut filter",
"input": "Input",
"tree-mode": "Tree mode"
"tree-mode": "Tree mode",
"last-updated-at": "Last updated at",
"referencing": "Referencing"
},
"days": {
"fri": "Fri",

@ -82,7 +82,9 @@
"properties": "属性",
"shortcut-filter": "捷径过滤器",
"input": "输入",
"tree-mode": "树模式"
"tree-mode": "树模式",
"last-updated-at": "最后更新时间",
"referencing": "相关笔记"
},
"days": {
"fri": "五",

Loading…
Cancel
Save