From ad55de784d76b756de7a3f4d8b630506659805aa Mon Sep 17 00:00:00 2001 From: Philipp Heckel <pheckel@datto.com> Date: Wed, 1 Jun 2022 00:03:56 -0400 Subject: [PATCH] Add Chinese translation --- docs/releases.md | 4 ++++ web/src/components/Preferences.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/releases.md b/docs/releases.md index 022d5f9a..637fea3f 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -27,6 +27,10 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release * [Examples](examples.md) for [Home Assistant](https://www.home-assistant.io/) ([#282](https://github.com/binwiederhier/ntfy/pull/282), thanks to [@poblabs](https://github.com/poblabs)) * Install instructions for [NixOS/Nix](https://ntfy.sh/docs/install/#nixos-nix) ([#282](https://github.com/binwiederhier/ntfy/pull/282), thanks to [@arjan-s](https://github.com/arjan-s)) +**Additional translations:** + +* Chinese/Simplified (thanks to [@yufei.im](https://hosted.weblate.org/user/yufei.im/)) + --> diff --git a/web/src/components/Preferences.js b/web/src/components/Preferences.js index b93702fa..e2899ecc 100644 --- a/web/src/components/Preferences.js +++ b/web/src/components/Preferences.js @@ -436,7 +436,7 @@ const Appearance = () => { const Language = () => { const { t, i18n } = useTranslation(); const labelId = "prefLanguage"; - const randomFlags = shuffle(["๐ฌ๐ง", "๐บ๐ธ", "๐ช๐ธ", "๐ซ๐ท", "๐ง๐ฌ", "๐จ๐ฟ", "๐ฉ๐ช", "๐ฎ๐น", "๐ญ๐บ", "๐ง๐ท", "๐ฎ๐ฉ", "๐ฏ๐ต", "๐ท๐บ", "๐น๐ท"]).slice(0, 3); + const randomFlags = shuffle(["๐ฌ๐ง", "๐บ๐ธ", "๐ช๐ธ", "๐ซ๐ท", "๐ง๐ฌ", "๐จ๐ฟ", "๐ฉ๐ช", "๐จ๐ณ", "๐ฎ๐น", "๐ญ๐บ", "๐ง๐ท", "๐ฎ๐ฉ", "๐ฏ๐ต", "๐ท๐บ", "๐น๐ท"]).slice(0, 3); const title = t("prefs_appearance_language_title") + " " + randomFlags.join(" "); const lang = i18n.language ?? "en"; @@ -452,6 +452,7 @@ const Language = () => { <MenuItem value="id">Bahasa Indonesia</MenuItem> <MenuItem value="bg">ะัะปะณะฐััะบะธ</MenuItem> <MenuItem value="cs">ฤeลกtina</MenuItem> + <MenuItem value="zh_Hans">ไธญๆ</MenuItem> <MenuItem value="de">Deutsch</MenuItem> <MenuItem value="es">Espaรฑol</MenuItem> <MenuItem value="fr">Franรงais</MenuItem>