Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update chinese i18n (#4414)
taosin6fdfe6b11808
diff --git a/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx b/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsxindex 5e17c6803..f4789c6c9 100644--- a/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx+++ b/web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx@@ -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>diff --git a/web/src/components/MemoRelationListView.tsx b/web/src/components/MemoRelationListView.tsxindex 12e72aed3..8a7acf65a 100644--- a/web/src/components/MemoRelationListView.tsx+++ b/web/src/components/MemoRelationListView.tsx@@ -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>)}diff --git a/web/src/locales/en.json b/web/src/locales/en.jsonindex 13779d450..1171f4291 100644--- a/web/src/locales/en.json+++ b/web/src/locales/en.json@@ -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",diff --git a/web/src/locales/zh-Hans.json b/web/src/locales/zh-Hans.jsonindex d053ad3ff..6b1768a96 100644--- a/web/src/locales/zh-Hans.json+++ b/web/src/locales/zh-Hans.json@@ -82,7 +82,9 @@"properties": "属性","shortcut-filter": "捷径过滤器","input": "输入",- "tree-mode": "树模式"+ "tree-mode": "树模式",+ "last-updated-at": "最后更新时间",+ "referencing": "相关笔记"},"days": {"fri": "五",