From 57b53883506fccc148e40806c8ba1df06d699f1c Mon Sep 17 00:00:00 2001 From: "Arne K. (TRC-Loop)" Date: Thu, 24 Sep 2026 18:25:57 +0200 Subject: [PATCH] fix: show no borrowed flag for a language that has none Signed-off-by: Arne K. (TRC-Loop) --- .../components/common/LanguageSelect.svelte | 12 ++++- frontend/src/lib/flags.test.ts | 42 ++++++++++++++++++ frontend/src/lib/flags.ts | 44 +++++-------------- 3 files changed, 64 insertions(+), 34 deletions(-) diff --git a/frontend/src/components/common/LanguageSelect.svelte b/frontend/src/components/common/LanguageSelect.svelte index a72f1d5..61fcf9d 100644 --- a/frontend/src/components/common/LanguageSelect.svelte +++ b/frontend/src/components/common/LanguageSelect.svelte @@ -7,7 +7,7 @@ // files from the locales folder are listed after the built-ins; their value // is "user:". import { onMount } from 'svelte' - import { IconCheck } from '@tabler/icons-svelte' + import { IconCheck, IconWorld } from '@tabler/icons-svelte' import { locales, localeNames, detectOSLocale, userLocalePrefix, t } from '../../lib/i18n' import { flagFor } from '../../lib/flags' import { listUserLocales } from '../../lib/api' @@ -34,6 +34,10 @@