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
8356ebc4
Unverified
Commit
8356ebc4
authored
Apr 09, 2024
by
imikod
Committed by
GitHub
Apr 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: improve localization (#3190)
* improve localization * follow suggestion
parent
fc958766
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
CreateMemoRelationDialog.tsx
web/src/components/CreateMemoRelationDialog.tsx
+4
-4
PersonalStatistics.tsx
web/src/components/PersonalStatistics.tsx
+3
-3
en.json
web/src/locales/en.json
+9
-1
No files found.
web/src/components/CreateMemoRelationDialog.tsx
View file @
8356ebc4
...
...
@@ -85,7 +85,7 @@ const CreateMemoRelationDialog: React.FC<Props> = (props: Props) => {
return
(
<>
<
div
className=
"dialog-header-container !w-96"
>
<
p
className=
"title-text"
>
{
"Add references"
}
</
p
>
<
p
className=
"title-text"
>
{
t
(
"reference.add-references"
)
}
</
p
>
<
IconButton
size=
"sm"
onClick=
{
()
=>
destroy
()
}
>
<
Icon
.
X
className=
"w-5 h-auto"
/>
</
IconButton
>
...
...
@@ -96,8 +96,8 @@ const CreateMemoRelationDialog: React.FC<Props> = (props: Props) => {
size=
"md"
clearOnBlur
disableClearable
placeholder=
{
"Search content"
}
noOptionsText=
{
"No memos found"
}
placeholder=
{
t
(
"reference.search-bar-placeholder"
)
}
noOptionsText=
{
t
(
"reference.no-memos-found"
)
}
options=
{
filteredMemos
}
loading=
{
isFetching
}
inputValue=
{
searchText
}
...
...
@@ -130,7 +130,7 @@ const CreateMemoRelationDialog: React.FC<Props> = (props: Props) => {
onChange=
{
(
_
,
value
)
=>
setSelectedMemos
(
value
)
}
/>
<
div
className=
"mt-3"
>
<
Checkbox
label=
{
"Use as Embedded Content"
}
checked=
{
embedded
}
onChange=
{
(
e
)
=>
setEmbedded
(
e
.
target
.
checked
)
}
/>
<
Checkbox
label=
{
t
(
"reference.embedded-usage"
)
}
checked=
{
embedded
}
onChange=
{
(
e
)
=>
setEmbedded
(
e
.
target
.
checked
)
}
/>
</
div
>
<
div
className=
"mt-4 w-full flex flex-row justify-end items-center space-x-1"
>
<
Button
variant=
"plain"
color=
"neutral"
onClick=
{
handleCloseDialog
}
>
...
...
web/src/components/PersonalStatistics.tsx
View file @
8356ebc4
...
...
@@ -43,21 +43,21 @@ const PersonalStatistics = (props: Props) => {
<
div
className=
"w-full flex justify-between items-center"
>
<
div
className=
"w-full flex justify-start items-center"
>
<
Icon
.
CalendarDays
className=
"w-4 h-auto mr-1"
/>
<
span
className=
"block text-base sm:text-sm"
>
Days
</
span
>
<
span
className=
"block text-base sm:text-sm"
>
{
t
(
"common.days"
)
}
</
span
>
</
div
>
<
span
className=
"font-mono"
>
{
days
}
</
span
>
</
div
>
<
div
className=
"w-full flex justify-between items-center"
>
<
div
className=
"w-full flex justify-start items-center"
>
<
Icon
.
Library
className=
"w-4 h-auto mr-1"
/>
<
span
className=
"block text-base sm:text-sm"
>
Memos
</
span
>
<
span
className=
"block text-base sm:text-sm"
>
{
t
(
"common.memos"
)
}
</
span
>
</
div
>
{
isRequesting
?
<
Icon
.
Loader
className=
"animate-spin w-4 h-auto text-gray-400"
/>
:
<
span
className=
"font-mono"
>
{
memoAmount
}
</
span
>
}
</
div
>
<
div
className=
"w-full flex justify-between items-center"
>
<
div
className=
"w-full flex justify-start items-center"
>
<
Icon
.
Hash
className=
"w-4 h-auto mr-1"
/>
<
span
className=
"block text-base sm:text-sm"
>
Tags
</
span
>
<
span
className=
"block text-base sm:text-sm"
>
{
t
(
"common.tags"
)
}
</
span
>
</
div
>
<
span
className=
"font-mono"
>
{
tags
}
</
span
>
</
div
>
...
...
web/src/locales/en.json
View file @
8356ebc4
...
...
@@ -62,7 +62,9 @@
"search"
:
"Search"
,
"role"
:
"Role"
,
"description"
:
"Description"
,
"statistics"
:
"Statistics"
"statistics"
:
"Statistics"
,
"days"
:
"Days"
,
"memos"
:
"Memos"
},
"router"
:
{
"go-to-home"
:
"Go to Home"
,
...
...
@@ -107,6 +109,12 @@
},
"show-more"
:
"Show more"
},
"reference"
:
{
"add-references"
:
"Add references"
,
"search-bar-placeholder"
:
"Search content"
,
"no-memos-found"
:
"No memos found"
,
"embedded-usage"
:
"Use as Embedded Content"
},
"resource"
:
{
"no-resources"
:
"No resources."
,
"fetching-data"
:
"Fetching data…"
,
...
...
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