Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: i18n for filter (#275)
f971aa9963e0745
diff --git a/web/src/components/MemoFilter.tsx b/web/src/components/MemoFilter.tsxindex f0bce33e2..fb92ad8f6 100644--- a/web/src/components/MemoFilter.tsx+++ b/web/src/components/MemoFilter.tsx@@ -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 ? (<divdiff --git a/web/src/components/SearchBar.tsx b/web/src/components/SearchBar.tsxindex 86444053a..9c5a75a49 100644--- a/web/src/components/SearchBar.tsx+++ b/web/src/components/SearchBar.tsx@@ -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>diff --git a/web/src/locales/vi.json b/web/src/locales/vi.jsonindex 6ae2ef276..80638f427 100644--- a/web/src/locales/vi.json+++ b/web/src/locales/vi.json@@ -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": {