Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): t function localization (#18768)

waclaw66edae9c2d3d97
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) {