From edae9c2d3d972b3a7ad1a4f73d9f572e42f4de85 Mon Sep 17 00:00:00 2001
From: waclaw66 <waclaw66@seznam.cz>
Date: Tue, 3 Jun 2025 16:52:29 +0200
Subject: [PATCH] fix(mobile): t function localization (#18768)

* fix(mobile): items translation

* Intl.defaultLocale null coalescence
---
 mobile/lib/utils/translation.dart | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mobile/lib/utils/translation.dart b/mobile/lib/utils/translation.dart
index 461e88ead7..1a33161dbc 100644
--- a/mobile/lib/utils/translation.dart
+++ b/mobile/lib/utils/translation.dart
@@ -5,7 +5,8 @@ String t(String key, [Map<String, Object>? args]) {
   try {
     String message = key.tr();
     if (args != null) {
-      return MessageFormat(message).format(args);
+      return MessageFormat(message, locale: Intl.defaultLocale ?? 'en')
+          .format(args);
     }
     return message;
   } catch (e) {