Add release notes
parent
7c1d892779
commit
e1339ccde7
|
@ -1163,3 +1163,9 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release
|
|||
**Additional languages:**
|
||||
|
||||
* Swedish (thanks to [@hellbown](https://hosted.weblate.org/user/hellbown/))
|
||||
|
||||
### ntfy server v2.4.0 (UNRELEASED)
|
||||
|
||||
**Bug fixes + maintenance:**
|
||||
|
||||
* Hide country flags on Windows ([#606](https://github.com/binwiederhier/ntfy/issues/606), thanks to [@cmeis](https://github.com/cmeis) for reporting, and to [@pokej6](https://github.com/pokej6) for fixing it)
|
||||
|
|
|
@ -438,14 +438,12 @@ const Language = () => {
|
|||
const labelId = "prefLanguage";
|
||||
const lang = i18n.language ?? "en";
|
||||
|
||||
// Country flags are displayed using emoji. Emoji rendereing is handled by platform fonts.
|
||||
// Country flags are displayed using emoji. Emoji rendering is handled by platform fonts.
|
||||
// Windows in particular does not yet play nicely with flag emoji so for now, hide flags on Windows.
|
||||
// Note: There are ways around this by using custom fonts. This appears to be implemented in Firefox...
|
||||
// Not worth the hassle.
|
||||
const randomFlags = shuffle(["🇬🇧", "🇺🇸", "🇪🇸", "🇫🇷", "🇧🇬", "🇨🇿", "🇩🇪", "🇵🇱", "🇺🇦", "🇨🇳", "🇮🇹", "🇭🇺", "🇧🇷", "🇳🇱", "🇮🇩", "🇯🇵", "🇷🇺", "🇹🇷"]).slice(0, 3);
|
||||
const showFlags = !navigator.userAgent.includes("Windows");
|
||||
let title = t("prefs_appearance_language_title");
|
||||
if (showFlags === true) {
|
||||
if (showFlags) {
|
||||
title += " " + randomFlags.join(" ");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue