mirror of
https://github.com/usememos/memos.git
synced 2024-09-21 14:55:59 +08:00
fix: i18n for filter (#275)
This commit is contained in:
parent
88ade2c0b7
commit
1aa9963e07
|
@ -37,7 +37,7 @@ const MemoFilter = () => {
|
||||||
locationService.setMemoTypeQuery(undefined);
|
locationService.setMemoTypeQuery(undefined);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span className="icon-text">📦</span> {getTextWithMemoType(memoType as MemoSpecType)}
|
<span className="icon-text">📦</span> {t(getTextWithMemoType(memoType as MemoSpecType))}
|
||||||
</div>
|
</div>
|
||||||
{duration && duration.from < duration.to ? (
|
{duration && duration.from < duration.to ? (
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -34,16 +34,16 @@ const SearchBar = () => {
|
||||||
<div className="section-container types-container">
|
<div className="section-container types-container">
|
||||||
<span className="section-text">{t("common.type").toUpperCase()}:</span>
|
<span className="section-text">{t("common.type").toUpperCase()}:</span>
|
||||||
<div className="values-container">
|
<div className="values-container">
|
||||||
{memoSpecialTypes.map((t, idx) => {
|
{memoSpecialTypes.map((type, idx) => {
|
||||||
return (
|
return (
|
||||||
<div key={t.value}>
|
<div key={type.value}>
|
||||||
<span
|
<span
|
||||||
className={`type-item ${memoType === t.value ? "selected" : ""}`}
|
className={`type-item ${memoType === type.value ? "selected" : ""}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
handleMemoTypeItemClick(t.value as MemoSpecType);
|
handleMemoTypeItemClick(type.value as MemoSpecType);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t.text}
|
{t(type.text)}
|
||||||
</span>
|
</span>
|
||||||
{idx + 1 < memoSpecialTypes.length ? <span className="split-text">/</span> : null}
|
{idx + 1 < memoSpecialTypes.length ? <span className="split-text">/</span> : null}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -61,9 +61,9 @@
|
||||||
"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",
|
"delete-resource": "Xóa tài nguyên",
|
||||||
"warning-text": "Are you sure to delete this resource? THIS ACTION IS IRREVERSIABLE❗️",
|
"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": "Linked memo amount"
|
"linked-amount": "Số memo đã liên kết"
|
||||||
},
|
},
|
||||||
"archived": {
|
"archived": {
|
||||||
"archived-memos": "Memo đã lưu trữ",
|
"archived-memos": "Memo đã lưu trữ",
|
||||||
|
@ -106,8 +106,8 @@
|
||||||
"is-not": "Is Not"
|
"is-not": "Is Not"
|
||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"not-tagged": "No tags",
|
"not-tagged": "Không có thẻ",
|
||||||
"linked": "Has links"
|
"linked": "Có links"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tag-list": {
|
"tag-list": {
|
||||||
|
|
Loading…
Reference in a new issue