mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
16 lines
756 B
Dart
16 lines
756 B
Dart
import 'package:localsend_app/gen/strings.g.dart';
|
|
import 'package:localsend_isolates/util/notification_strings.dart';
|
|
|
|
/// The translations that `localsend_isolates` needs, taken from the current locale.
|
|
///
|
|
/// Lazy, so it resolves after the locale has been applied in `preInit`. The locale is pinned on
|
|
/// app start, so binding the translation members once is enough.
|
|
final notificationStrings = NotificationStrings(
|
|
titleReceiving: t.progressPage.titleReceiving,
|
|
titleSending: t.progressPage.titleSending,
|
|
remainingTimeSeconds: t.progressPage.remainingTime.seconds,
|
|
remainingTimeMinutes: t.progressPage.remainingTime.minutes,
|
|
remainingTimeHours: t.progressPage.remainingTime.hours,
|
|
remainingTimeDays: t.progressPage.remainingTime.days,
|
|
);
|