diff --git a/docs/releases.md b/docs/releases.md index f45fa367..ad04671e 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -20,6 +20,8 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release * Bulgarian (thanks to [@StoyanDimitrov](https://github.com/StoyanDimitrov)) * German (thanks to [@cmeis](https://github.com/cmeis)) +* Indonesian (thanks to [@linerly](https://hosted.weblate.org/user/linerly/)) +* Japanese (thanks to [@shak](https://hosted.weblate.org/user/shak/)) * Turkish (thanks to [@ersen](https://ersen.moe/)) --> @@ -51,6 +53,7 @@ Released Apr 7, 2022 * German (thanks to [@cmeis](https://github.com/cmeis)) * Italian (thanks to [@theTranslator](https://hosted.weblate.org/user/theTranslator/)) * Indonesian (thanks to [@linerly](https://hosted.weblate.org/user/linerly/)) +* Japanese (thanks to [@shak](https://hosted.weblate.org/user/shak/)) * Norwegian (*incomplete*, thanks to [@comradekingu](https://github.com/comradekingu)) * Portuguese/Brazil (thanks to [@LW](https://hosted.weblate.org/user/LW/)) * Spanish (thanks to [@rogeliodh](https://github.com/rogeliodh)) diff --git a/web/src/components/Preferences.js b/web/src/components/Preferences.js index d76a7b3e..1aaa748d 100644 --- a/web/src/components/Preferences.js +++ b/web/src/components/Preferences.js @@ -32,7 +32,7 @@ import DialogTitle from "@mui/material/DialogTitle"; import DialogContent from "@mui/material/DialogContent"; import DialogActions from "@mui/material/DialogActions"; import userManager from "../app/UserManager"; -import {playSound} from "../app/utils"; +import {playSound, shuffle} from "../app/utils"; import {useTranslation} from "react-i18next"; const Preferences = () => { @@ -40,8 +40,8 @@ const Preferences = () => { - + ); @@ -385,13 +385,21 @@ const Appearance = () => { const Language = () => { const { t, i18n } = useTranslation(); + const randomFlags = shuffle(["🇬🇧", "🇺🇸", "🇧🇬", "🇩🇪", "🇮🇩", "🇯🇵", "🇹🇷"]).slice(0, 3); + const title = t("prefs_appearance_language_title") + " " + randomFlags.join(" "); + + // Remember: Flags are not languages. Don't put flags next to the language in the list. + // Languages names from: https://www.omniglot.com/language/names.htm + return ( - +