fix(app): every window follows the reading direction; live regions and left-to-right text

Windows created after the language was applied (the main window at start, every
dialog) now take FlowDirection from the current culture when they load, so an
Arabic or Hebrew UI stays mirrored after a restart and in dialogs. Adds
LiveRegion.Text (announces status changes to screen readers) and
Formatting.LeftToRight (keeps paths, addresses and fingerprints in order inside
right-to-left text).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 17:23:33 +00:00
1 parent 6e01995f7e
commit baf3c6bddd
3 files changed
+48 -2

No files matched your search

@@ -56,4 +56,10 @@ public static class Formatting
/// <summary>Camera wall-clock date in the culture's short format.</summary>
public static string Date(DateTime wallClock) => wallClock.ToString("d", Loc.Culture);
/// <summary>
/// A path, address or fingerprint kept left to right inside right-to-left text (a Unicode left-to-right embedding),
/// so its separators and digits stay in place; it reads unchanged in left-to-right languages.
/// </summary>
public static string LeftToRight(string text) => "‪" + text + "‬";
}