mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05:00
12 lines
235 B
Dart
12 lines
235 B
Dart
import 'package:intl/message_format.dart';
|
|
|
|
String tr(String key, [Map<String, Object>? args]) {
|
|
try {
|
|
if (args != null) {
|
|
return MessageFormat(key).format(args);
|
|
}
|
|
return key;
|
|
} catch (e) {
|
|
return key;
|
|
}
|
|
}
|