fix: i18n for filter (#275)

This commit is contained in:
f97 2022-10-10 09:46:52 +00:00 committed by GitHub
parent 88ade2c0b7
commit 1aa9963e07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 11 deletions

View file

@ -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

View file

@ -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>

View file

@ -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": " links"
}
},
"tag-list": {