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
88ade2c0
Commit
88ade2c0
authored
Oct 09, 2022
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update i18n for filter
parent
4ada7dce
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
17 deletions
+38
-17
CreateShortcutDialog.tsx
web/src/components/CreateShortcutDialog.tsx
+1
-1
filter.ts
web/src/helpers/filter.ts
+8
-8
en.json
web/src/locales/en.json
+5
-3
vi.json
web/src/locales/vi.json
+19
-2
zh.json
web/src/locales/zh.json
+5
-3
No files found.
web/src/components/CreateShortcutDialog.tsx
View file @
88ade2c0
...
@@ -132,7 +132,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
...
@@ -132,7 +132,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
);
);
})
}
})
}
<
div
className=
"create-filter-btn"
onClick=
{
handleAddFilterBenClick
}
>
<
div
className=
"create-filter-btn"
onClick=
{
handleAddFilterBenClick
}
>
{
t
(
"
shortcut-list
.new-filter"
)
}
{
t
(
"
filter
.new-filter"
)
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
web/src/helpers/filter.ts
View file @
88ade2c0
...
@@ -11,11 +11,11 @@ export const filterConsts = {
...
@@ -11,11 +11,11 @@ export const filterConsts = {
value
:
"TAG"
,
value
:
"TAG"
,
operators
:
[
operators
:
[
{
{
text
:
"
shortcut-list
.operator.contains"
,
text
:
"
filter
.operator.contains"
,
value
:
"CONTAIN"
,
value
:
"CONTAIN"
,
},
},
{
{
text
:
"
shortcut-list
.operator.not-contains"
,
text
:
"
filter
.operator.not-contains"
,
value
:
"NOT_CONTAIN"
,
value
:
"NOT_CONTAIN"
,
},
},
],
],
...
@@ -25,21 +25,21 @@ export const filterConsts = {
...
@@ -25,21 +25,21 @@ export const filterConsts = {
value
:
"TYPE"
,
value
:
"TYPE"
,
operators
:
[
operators
:
[
{
{
text
:
"
shortcut-list
.operator.is"
,
text
:
"
filter
.operator.is"
,
value
:
"IS"
,
value
:
"IS"
,
},
},
{
{
text
:
"
shortcut-list
.operator.is-not"
,
text
:
"
filter
.operator.is-not"
,
value
:
"IS_NOT"
,
value
:
"IS_NOT"
,
},
},
],
],
values
:
[
values
:
[
{
{
text
:
"
shortcut-list
.value.not-tagged"
,
text
:
"
filter
.value.not-tagged"
,
value
:
"NOT_TAGGED"
,
value
:
"NOT_TAGGED"
,
},
},
{
{
text
:
"
shortcut-list
.value.linked"
,
text
:
"
filter
.value.linked"
,
value
:
"LINKED"
,
value
:
"LINKED"
,
},
},
],
],
...
@@ -49,11 +49,11 @@ export const filterConsts = {
...
@@ -49,11 +49,11 @@ export const filterConsts = {
value
:
"TEXT"
,
value
:
"TEXT"
,
operators
:
[
operators
:
[
{
{
text
:
"
shortcut-list
.operator.contains"
,
text
:
"
filter
.operator.contains"
,
value
:
"CONTAIN"
,
value
:
"CONTAIN"
,
},
},
{
{
text
:
"
shortcut-list
.operator.not-contains"
,
text
:
"
filter
.operator.not-contains"
,
value
:
"NOT_CONTAIN"
,
value
:
"NOT_CONTAIN"
,
},
},
],
],
...
...
web/src/locales/en.json
View file @
88ade2c0
...
@@ -93,10 +93,12 @@
...
@@ -93,10 +93,12 @@
"shortcut-title"
:
"shortcut title"
,
"shortcut-title"
:
"shortcut title"
,
"create-shortcut"
:
"Create Shortcut"
,
"create-shortcut"
:
"Create Shortcut"
,
"edit-shortcut"
:
"Edit Shortcut"
,
"edit-shortcut"
:
"Edit Shortcut"
,
"new-filter"
:
"New Filter"
,
"eligible-memo"
:
"eligible memo"
,
"eligible-memo"
:
"eligible memo"
,
"fill-previous"
:
"Please fill in previous filter value"
,
"fill-previous"
:
"Please fill in previous filter value"
,
"title-required"
:
"Title is required"
,
"title-required"
:
"Title is required"
},
"filter"
:
{
"new-filter"
:
"New Filter"
,
"operator"
:
{
"operator"
:
{
"contains"
:
"Contains"
,
"contains"
:
"Contains"
,
"not-contains"
:
"Does not contain"
,
"not-contains"
:
"Does not contain"
,
...
...
web/src/locales/vi.json
View file @
88ade2c0
...
@@ -7,9 +7,11 @@
...
@@ -7,9 +7,11 @@
"repeat-new-password"
:
"Nhập lại mật khẩu mới"
,
"repeat-new-password"
:
"Nhập lại mật khẩu mới"
,
"username"
:
"Tên đăng nhập"
,
"username"
:
"Tên đăng nhập"
,
"save"
:
"Lưu"
,
"save"
:
"Lưu"
,
"close"
:
"Close"
,
"cancel"
:
"Hủy"
,
"cancel"
:
"Hủy"
,
"create"
:
"Tạo mới"
,
"create"
:
"Tạo mới"
,
"change"
:
"Thay đổi"
,
"change"
:
"Thay đổi"
,
"confirm"
:
"Confirm"
,
"reset"
:
"Khôi phục"
,
"reset"
:
"Khôi phục"
,
"language"
:
"Ngôn Ngữ"
,
"language"
:
"Ngôn Ngữ"
,
"version"
:
"Phiên bản"
,
"version"
:
"Phiên bản"
,
...
@@ -58,7 +60,10 @@
...
@@ -58,7 +60,10 @@
"fetching-data"
:
"đang tải dữ liệu..."
,
"fetching-data"
:
"đang tải dữ liệu..."
,
"upload"
:
"Tải lên"
,
"upload"
:
"Tải lên"
,
"preview"
:
"Xem trước"
,
"preview"
:
"Xem trước"
,
"copy-link"
:
"Sao chép"
"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 amount"
},
},
"archived"
:
{
"archived"
:
{
"archived-memos"
:
"Memo đã lưu trữ"
,
"archived-memos"
:
"Memo đã lưu trữ"
,
...
@@ -88,11 +93,23 @@
...
@@ -88,11 +93,23 @@
"shortcut-title"
:
"Tên lối tắt"
,
"shortcut-title"
:
"Tên lối tắt"
,
"create-shortcut"
:
"Tạo lối tắt"
,
"create-shortcut"
:
"Tạo lối tắt"
,
"edit-shortcut"
:
"Chỉnh sửa lối tắt"
,
"edit-shortcut"
:
"Chỉnh sửa lối tắt"
,
"new-filter"
:
"Bộ lọc mới"
,
"eligible-memo"
:
"memo đạt chuẩn"
,
"eligible-memo"
:
"memo đạt chuẩn"
,
"fill-previous"
:
"Vui lòng nhập vào giá trị của bộ lọc trước đó"
,
"fill-previous"
:
"Vui lòng nhập vào giá trị của bộ lọc trước đó"
,
"title-required"
:
"Tiêu đề là bắt buộc"
"title-required"
:
"Tiêu đề là bắt buộc"
},
},
"filter"
:
{
"new-filter"
:
"Bộ lọc mới"
,
"operator"
:
{
"contains"
:
"Contains"
,
"not-contains"
:
"Does not contain"
,
"is"
:
"Is"
,
"is-not"
:
"Is Not"
},
"value"
:
{
"not-tagged"
:
"No tags"
,
"linked"
:
"Has links"
}
},
"tag-list"
:
{
"tag-list"
:
{
"tip-text"
:
"Nhập `#tag` để tạo mới"
"tip-text"
:
"Nhập `#tag` để tạo mới"
},
},
...
...
web/src/locales/zh.json
View file @
88ade2c0
...
@@ -93,10 +93,12 @@
...
@@ -93,10 +93,12 @@
"shortcut-title"
:
"捷径标题"
,
"shortcut-title"
:
"捷径标题"
,
"create-shortcut"
:
"创建捷径"
,
"create-shortcut"
:
"创建捷径"
,
"edit-shortcut"
:
"编辑捷径"
,
"edit-shortcut"
:
"编辑捷径"
,
"new-filter"
:
"新建过滤器"
,
"eligible-memo"
:
"符合条件的 memo"
,
"eligible-memo"
:
"符合条件的 memo"
,
"fill-previous"
:
"请填写之前的过滤值"
,
"fill-previous"
:
"请填写之前的过滤值"
,
"title-required"
:
"标题是必填项。"
,
"title-required"
:
"标题是必填项。"
},
"filter"
:
{
"new-filter"
:
"新建过滤器"
,
"operator"
:
{
"operator"
:
{
"contains"
:
"包含"
,
"contains"
:
"包含"
,
"not-contains"
:
"不包含"
,
"not-contains"
:
"不包含"
,
...
...
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