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
6fdfe6b1
Unverified
Commit
6fdfe6b1
authored
Feb 17, 2025
by
taosin
Committed by
GitHub
Feb 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update chinese i18n (#4414)
parent
9f25bb20
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
MemoDetailSidebar.tsx
web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx
+1
-1
MemoRelationListView.tsx
web/src/components/MemoRelationListView.tsx
+3
-1
en.json
web/src/locales/en.json
+3
-1
zh-Hans.json
web/src/locales/zh-Hans.json
+3
-1
No files found.
web/src/components/MemoDetailSidebar/MemoDetailSidebar.tsx
View file @
6fdfe6b1
...
@@ -41,7 +41,7 @@ const MemoDetailSidebar = ({ memo, className, parentPage }: Props) => {
...
@@ -41,7 +41,7 @@ const MemoDetailSidebar = ({ memo, className, parentPage }: Props) => {
{
!
isEqual
(
memo
.
createTime
,
memo
.
updateTime
)
&&
(
{
!
isEqual
(
memo
.
createTime
,
memo
.
updateTime
)
&&
(
<
div
className=
"w-full flex flex-col"
>
<
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"
>
<
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
>
<
p
className=
"text-sm text-gray-500 dark:text-gray-400"
>
{
memo
.
updateTime
?.
toLocaleString
()
}
</
p
>
<
p
className=
"text-sm text-gray-500 dark:text-gray-400"
>
{
memo
.
updateTime
?.
toLocaleString
()
}
</
p
>
</
div
>
</
div
>
...
...
web/src/components/MemoRelationListView.tsx
View file @
6fdfe6b1
...
@@ -4,6 +4,7 @@ import { Link } from "react-router-dom";
...
@@ -4,6 +4,7 @@ import { Link } from "react-router-dom";
import
{
MemoRelation
}
from
"@/types/proto/api/v1/memo_relation_service"
;
import
{
MemoRelation
}
from
"@/types/proto/api/v1/memo_relation_service"
;
import
{
Memo
}
from
"@/types/proto/api/v1/memo_service"
;
import
{
Memo
}
from
"@/types/proto/api/v1/memo_service"
;
import
{
cn
}
from
"@/utils"
;
import
{
cn
}
from
"@/utils"
;
import
{
useTranslate
}
from
"@/utils/i18n"
;
interface
Props
{
interface
Props
{
memo
:
Memo
;
memo
:
Memo
;
...
@@ -12,6 +13,7 @@ interface Props {
...
@@ -12,6 +13,7 @@ interface Props {
}
}
const
MemoRelationListView
=
(
props
:
Props
)
=>
{
const
MemoRelationListView
=
(
props
:
Props
)
=>
{
const
t
=
useTranslate
();
const
{
memo
,
relations
:
relationList
,
parentPage
}
=
props
;
const
{
memo
,
relations
:
relationList
,
parentPage
}
=
props
;
const
referencingMemoList
=
relationList
const
referencingMemoList
=
relationList
.
filter
((
relation
)
=>
relation
.
memo
?.
name
===
memo
.
name
&&
relation
.
relatedMemo
?.
name
!==
memo
.
name
)
.
filter
((
relation
)
=>
relation
.
memo
?.
name
===
memo
.
name
&&
relation
.
relatedMemo
?.
name
!==
memo
.
name
)
...
@@ -39,7 +41,7 @@ const MemoRelationListView = (props: Props) => {
...
@@ -39,7 +41,7 @@ const MemoRelationListView = (props: Props) => {
onClick=
{
()
=>
setSelectedTab
(
"referencing"
)
}
onClick=
{
()
=>
setSelectedTab
(
"referencing"
)
}
>
>
<
LinkIcon
className=
"w-3 h-auto shrink-0 opacity-70"
/>
<
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
>
<
span
className=
"opacity-80"
>
(
{
referencingMemoList
.
length
}
)
</
span
>
</
button
>
</
button
>
)
}
)
}
...
...
web/src/locales/en.json
View file @
6fdfe6b1
...
@@ -85,7 +85,9 @@
...
@@ -85,7 +85,9 @@
"properties"
:
"Properties"
,
"properties"
:
"Properties"
,
"shortcut-filter"
:
"Shortcut filter"
,
"shortcut-filter"
:
"Shortcut filter"
,
"input"
:
"Input"
,
"input"
:
"Input"
,
"tree-mode"
:
"Tree mode"
"tree-mode"
:
"Tree mode"
,
"last-updated-at"
:
"Last updated at"
,
"referencing"
:
"Referencing"
},
},
"days"
:
{
"days"
:
{
"fri"
:
"Fri"
,
"fri"
:
"Fri"
,
...
...
web/src/locales/zh-Hans.json
View file @
6fdfe6b1
...
@@ -82,7 +82,9 @@
...
@@ -82,7 +82,9 @@
"properties"
:
"属性"
,
"properties"
:
"属性"
,
"shortcut-filter"
:
"捷径过滤器"
,
"shortcut-filter"
:
"捷径过滤器"
,
"input"
:
"输入"
,
"input"
:
"输入"
,
"tree-mode"
:
"树模式"
"tree-mode"
:
"树模式"
,
"last-updated-at"
:
"最后更新时间"
,
"referencing"
:
"相关笔记"
},
},
"days"
:
{
"days"
:
{
"fri"
:
"五"
,
"fri"
:
"五"
,
...
...
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