mirror of
https://github.com/immich-app/immich.git
synced 2025-06-24 17:03:11 +02:00
fix(mobile): t function localization (#18768)
* fix(mobile): items translation * Intl.defaultLocale null coalescence
This commit is contained in:
parent
246d593c9d
commit
edae9c2d3d
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue