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); 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

View file

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

View file

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