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
1aa9963e
Unverified
Commit
1aa9963e
authored
Oct 10, 2022
by
f97
Committed by
GitHub
Oct 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: i18n for filter (#275)
parent
88ade2c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
MemoFilter.tsx
web/src/components/MemoFilter.tsx
+1
-1
SearchBar.tsx
web/src/components/SearchBar.tsx
+5
-5
vi.json
web/src/locales/vi.json
+5
-5
No files found.
web/src/components/MemoFilter.tsx
View file @
1aa9963e
...
...
@@ -37,7 +37,7 @@ const MemoFilter = () => {
locationService
.
setMemoTypeQuery
(
undefined
);
}
}
>
<
span
className=
"icon-text"
>
📦
</
span
>
{
getTextWithMemoType
(
memoType
as
MemoSpecType
)
}
<
span
className=
"icon-text"
>
📦
</
span
>
{
t
(
getTextWithMemoType
(
memoType
as
MemoSpecType
)
)
}
</
div
>
{
duration
&&
duration
.
from
<
duration
.
to
?
(
<
div
...
...
web/src/components/SearchBar.tsx
View file @
1aa9963e
...
...
@@ -34,16 +34,16 @@ const SearchBar = () => {
<
div
className=
"section-container types-container"
>
<
span
className=
"section-text"
>
{
t
(
"common.type"
).
toUpperCase
()
}
:
</
span
>
<
div
className=
"values-container"
>
{
memoSpecialTypes
.
map
((
t
,
idx
)
=>
{
{
memoSpecialTypes
.
map
((
t
ype
,
idx
)
=>
{
return
(
<
div
key=
{
t
.
value
}
>
<
div
key=
{
t
ype
.
value
}
>
<
span
className=
{
`type-item ${memoType === t.value ? "selected" : ""}`
}
className=
{
`type-item ${memoType === t
ype
.value ? "selected" : ""}`
}
onClick=
{
()
=>
{
handleMemoTypeItemClick
(
t
.
value
as
MemoSpecType
);
handleMemoTypeItemClick
(
t
ype
.
value
as
MemoSpecType
);
}
}
>
{
t
.
text
}
{
t
(
type
.
text
)
}
</
span
>
{
idx
+
1
<
memoSpecialTypes
.
length
?
<
span
className=
"split-text"
>
/
</
span
>
:
null
}
</
div
>
...
...
web/src/locales/vi.json
View file @
1aa9963e
...
...
@@ -61,9 +61,9 @@
"upload"
:
"Tải lên"
,
"preview"
:
"Xem trước"
,
"copy-link"
:
"Sao chép"
,
"delete-resource"
:
"
Delete Resource
"
,
"warning-text"
:
"
Are you sure to delete this resource? THIS ACTION IS IRREVERSIABLE
❗️"
,
"linked-amount"
:
"
Linked memo amoun
t"
"delete-resource"
:
"
Xóa tài nguyên
"
,
"warning-text"
:
"
Bạn có chắc chắn xóa tài nguyên này không? HÀNH ĐỘNG KHÔNG THỂ KHÔI PHỤC
❗️"
,
"linked-amount"
:
"
Số memo đã liên kế
t"
},
"archived"
:
{
"archived-memos"
:
"Memo đã lưu trữ"
,
...
...
@@ -106,8 +106,8 @@
"is-not"
:
"Is Not"
},
"value"
:
{
"not-tagged"
:
"
No tags
"
,
"linked"
:
"
Has
links"
"not-tagged"
:
"
Không có thẻ
"
,
"linked"
:
"
Có
links"
}
},
"tag-list"
:
{
...
...
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