From be738e54b895f336ab88ceb6abd03fed097480b9 Mon Sep 17 00:00:00 2001
From: Sven <40752681+NeoCoderMatrix86@users.noreply.github.com>
Date: Mon, 2 Feb 2026 14:56:03 +0100
Subject: [PATCH] Update AppBar.razor
---
AudioCuesheetEditor/Shared/AppBar.razor | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/AudioCuesheetEditor/Shared/AppBar.razor b/AudioCuesheetEditor/Shared/AppBar.razor
index 0bae44a1..d106a201 100644
--- a/AudioCuesheetEditor/Shared/AppBar.razor
+++ b/AudioCuesheetEditor/Shared/AppBar.razor
@@ -59,7 +59,7 @@ along with Foobar. If not, see
@foreach (var culture in LocalizationService.AvailableCultures)
{
- @culture.DisplayName
+ @IsoCountryCodeToFlagEmoji(culture) @culture.DisplayName
}
@@ -205,4 +205,17 @@ along with Foobar. If not, see
var options = new DialogOptions() { BackdropClick = false, CloseOnEscapeKey = true, CloseButton = true, FullWidth = true, MaxWidth = MaxWidth.Large };
await _dialogService.ShowAsync(_localizer["Hotkeys"], options);
}
+
+ string IsoCountryCodeToFlagEmoji(CultureInfo cultureInfo)
+ {
+ if (cultureInfo.Name.Contains('-'))
+ {
+ var regionCode = cultureInfo.Name.Split('-')[1];
+ return string.Concat(regionCode.ToUpper().Select(x => char.ConvertFromUtf32(x + 0x1F1A5)));
+ }
+ else
+ {
+ return "🌐";
+ }
+ }
}
\ No newline at end of file