You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-07 23:03:36 +02:00
fix(mobile): t function localization (#18768)
* fix(mobile): items translation * Intl.defaultLocale null coalescence
This commit is contained in:
@ -5,7 +5,8 @@ String t(String key, [Map<String, Object>? args]) {
|
|||||||
try {
|
try {
|
||||||
String message = key.tr();
|
String message = key.tr();
|
||||||
if (args != null) {
|
if (args != null) {
|
||||||
return MessageFormat(message).format(args);
|
return MessageFormat(message, locale: Intl.defaultLocale ?? 'en')
|
||||||
|
.format(args);
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Reference in New Issue
Block a user