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
feat: implement plurals for stats (#783)
Jasper Platenburg3b419768665e
diff --git a/web/src/components/UserBanner.tsx b/web/src/components/UserBanner.tsxindex f7f67da57..616826c74 100644--- a/web/src/components/UserBanner.tsx+++ b/web/src/components/UserBanner.tsx@@ -116,15 +116,15 @@ const UserBanner = () => {<div className="amount-text-container"><div className="status-text memos-text"><span className="amount-text">{memoAmount}</span>- <span className="type-text">{t("amount-text.memo")}</span>+ <span className="type-text">{t("amount-text.memo", { count: memoAmount })}</span></div><div className="status-text tags-text"><span className="amount-text">{tags.length}</span>- <span className="type-text">{t("amount-text.tag")}</span>+ <span className="type-text">{t("amount-text.tag", { count: tags.length })}</span></div><div className="status-text duration-text"><span className="amount-text">{createdDays}</span>- <span className="type-text">{t("amount-text.day")}</span>+ <span className="type-text">{t("amount-text.day", { count: createdDays })}</span></div></div></>diff --git a/web/src/locales/de.json b/web/src/locales/de.jsonindex 0ab6e1af8..3a7fb88de 100644--- a/web/src/locales/de.json+++ b/web/src/locales/de.json@@ -191,9 +191,12 @@}},"amount-text": {- "memo": "MEMOS",- "tag": "TAGS",- "day": "TAGE"+ "memo_one": "MEMO",+ "memo_other": "MEMOS",+ "tag_one": "TAG",+ "tag_other": "TAGS",+ "day_one": "TAG",+ "day_other": "TAGE"},"message": {"no-memos": "Keine Memos 🌃",diff --git a/web/src/locales/en.json b/web/src/locales/en.jsonindex 7390742a1..52e85d684 100644--- a/web/src/locales/en.json+++ b/web/src/locales/en.json@@ -191,9 +191,12 @@}},"amount-text": {- "memo": "MEMO",- "tag": "TAG",- "day": "DAY"+ "memo_one": "MEMO",+ "memo_other": "MEMOS",+ "tag_one": "TAG",+ "tag_other": "TAGS",+ "day_one": "DAY",+ "day_other": "DAYS"},"message": {"no-memos": "no memos 🌃",diff --git a/web/src/locales/es.json b/web/src/locales/es.jsonindex e0bdbc8b2..0756c3d62 100644--- a/web/src/locales/es.json+++ b/web/src/locales/es.json@@ -191,9 +191,12 @@}},"amount-text": {- "memo": "NOTAS",- "tag": "TAGS",- "day": "DÍAS"+ "memo_one": "NOTA",+ "memo_other": "NOTAS",+ "tag_one": "ETIQUETA",+ "tag_other": "ETIQUETAS",+ "day_one": "DÍA",+ "day_other": "DÍAS"},"message": {"no-memos": "no hay notas 🌃",diff --git a/web/src/locales/fr.json b/web/src/locales/fr.jsonindex 3bfb9bc75..98a16c547 100644--- a/web/src/locales/fr.json+++ b/web/src/locales/fr.json@@ -186,9 +186,12 @@}},"amount-text": {- "memo": "MEMO",- "tag": "ÉTIQUETTE",- "day": "JOUR"+ "memo_one": "MEMO",+ "memo_other": "MEMOS",+ "tag_one": "ÉTIQUETTE",+ "tag_other": "ÉTIQUETTES",+ "day_one": "JOUR",+ "day_other": "JOURS"},"message": {"no-memos": "pas de mémos 🌃",diff --git a/web/src/locales/nl.json b/web/src/locales/nl.jsonindex 3bef67a5a..9ebec8c77 100644--- a/web/src/locales/nl.json+++ b/web/src/locales/nl.json@@ -185,9 +185,12 @@}},"amount-text": {- "memo": "MEMO",- "tag": "LABEL",- "day": "DAG"+ "memo_one": "MEMO",+ "memo_other": "MEMOS",+ "tag_one": "LABEL",+ "tag_other": "LABELS",+ "day_one": "DAG",+ "day_other": "DAGEN"},"message": {"no-memos": "geen memos 🌃",diff --git a/web/src/locales/sv.json b/web/src/locales/sv.jsonindex 20bfee047..29a7cdf44 100644--- a/web/src/locales/sv.json+++ b/web/src/locales/sv.json@@ -191,9 +191,12 @@}},"amount-text": {- "memo": "ANTECKNING",- "tag": "TAGG",- "day": "DAG"+ "memo_one": "ANTECKNING",+ "memo_other": "ANTECKNINGAR",+ "tag_one": "TAGG",+ "tag_other": "TAGGAR",+ "day_one": "DAG",+ "day_other": "DAGAR"},"message": {"no-memos": "inga anteckningar 🌃",diff --git a/web/src/locales/vi.json b/web/src/locales/vi.jsonindex bc53243f4..d2d78871c 100644--- a/web/src/locales/vi.json+++ b/web/src/locales/vi.json@@ -185,9 +185,12 @@}},"amount-text": {- "memo": "MEMO",- "tag": "THẺ",- "day": "NGÀY"+ "memo_one": "MEMO",+ "memo_other": "MEMO",+ "tag_one": "THẺ",+ "tag_other": "THẺ",+ "day_one": "NGÀY",+ "day_other": "NGÀY"},"message": {"no-memos": "Không có memo nào 🌃",diff --git a/web/src/locales/zh.json b/web/src/locales/zh.jsonindex aea0c4688..04a406092 100644--- a/web/src/locales/zh.json+++ b/web/src/locales/zh.json@@ -191,9 +191,12 @@}},"amount-text": {- "memo": "MEMO",- "tag": "TAG",- "day": "DAY"+ "memo_one": "MEMO",+ "memo_other": "MEMOS",+ "tag_one": "TAG",+ "tag_other": "TAGS",+ "day_one": "DAY",+ "day_other": "DAYS"},"message": {"no-memos": "没有 Memo 了 🌃",