mirror of
https://github.com/usememos/memos.git
synced 2024-09-22 09:17:36 +03:00
fix: i18n for filter (#275)
This commit is contained in:
parent
88ade2c0b7
commit
1aa9963e07
@ -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
|
||||
|
@ -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((type, idx) => {
|
||||
return (
|
||||
<div key={t.value}>
|
||||
<div key={type.value}>
|
||||
<span
|
||||
className={`type-item ${memoType === t.value ? "selected" : ""}`}
|
||||
className={`type-item ${memoType === type.value ? "selected" : ""}`}
|
||||
onClick={() => {
|
||||
handleMemoTypeItemClick(t.value as MemoSpecType);
|
||||
handleMemoTypeItemClick(type.value as MemoSpecType);
|
||||
}}
|
||||
>
|
||||
{t.text}
|
||||
{t(type.text)}
|
||||
</span>
|
||||
{idx + 1 < memoSpecialTypes.length ? <span className="split-text">/</span> : null}
|
||||
</div>
|
||||
|
@ -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 amount"
|
||||
"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": {
|
||||
|
Loading…
Reference in New Issue
Block a user