From 2652a99e0e8ddc4dbc344cb614039627c87738ec Mon Sep 17 00:00:00 2001 From: DatDang Date: Tue, 4 Jun 2024 10:01:13 +0700 Subject: [PATCH] TF-2877 Create new notification icon & texts --- assets/images/ic_notification.svg | 5 +++ .../presentation/resources/image_paths.dart | 1 + lib/l10n/intl_messages.arb | 36 ++++++++++++++++ lib/main/localizations/app_localizations.dart | 42 +++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 assets/images/ic_notification.svg diff --git a/assets/images/ic_notification.svg b/assets/images/ic_notification.svg new file mode 100644 index 000000000..f8ce20d62 --- /dev/null +++ b/assets/images/ic_notification.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/core/lib/presentation/resources/image_paths.dart b/core/lib/presentation/resources/image_paths.dart index 322b6e6fd..9b1462015 100644 --- a/core/lib/presentation/resources/image_paths.dart +++ b/core/lib/presentation/resources/image_paths.dart @@ -211,6 +211,7 @@ class ImagePaths { String get icRecoverDeletedMessages => _getImagePath('ic_recover_deleted_messages.svg'); String get icPrinter => _getImagePath('ic_printer.svg'); String get icAlwaysReadReceipt => _getImagePath('ic_always_read_receipt.svg'); + String get icNotification => _getImagePath('ic_notification.svg'); String _getImagePath(String imageName) { return AssetsPaths.images + imageName; diff --git a/lib/l10n/intl_messages.arb b/lib/l10n/intl_messages.arb index b563d04a0..3e90dab54 100644 --- a/lib/l10n/intl_messages.arb +++ b/lib/l10n/intl_messages.arb @@ -3873,5 +3873,41 @@ "type": "text", "placeholders_order": [], "placeholders": {} + }, + "notification": "Notification", + "@notification": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "notificationsDisabled": "Notifications disabled", + "@notificationsDisabled": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "pleaseAllowNotifications": "Please allow notifications from Twake Mail in the device's Settings", + "@pleaseAllowNotifications": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "goToSettings": "Go to Settings", + "@goToSettings": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "allowsTwakeMailToNotifyYouWhenANewMessageArrivesOnYourPhone": "Allows Twake Mail to notify you when a new message arrives on your phone", + "@allowsTwakeMailToNotifyYouWhenANewMessageArrivesOnYourPhone": { + "type": "text", + "placeholders_order": [], + "placeholders": {} + }, + "showNotifications": "Show Notifications", + "@showNotifications": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } \ No newline at end of file diff --git a/lib/main/localizations/app_localizations.dart b/lib/main/localizations/app_localizations.dart index 5dcf3481c..2f1733d71 100644 --- a/lib/main/localizations/app_localizations.dart +++ b/lib/main/localizations/app_localizations.dart @@ -4043,4 +4043,46 @@ class AppLocalizations { 'Show less', name: 'showLess'); } + + String get notification { + return Intl.message( + 'Notification', + name: 'notification', + ); + } + + String get notificationsDisabled { + return Intl.message( + 'Notifications disabled', + name: 'notificationsDisabled', + ); + } + + String get pleaseAllowNotifications { + return Intl.message( + 'Please allow notifications from Twake Mail in the device\'s Settings', + name: 'pleaseAllowNotifications', + ); + } + + String get goToSettings { + return Intl.message( + 'Go to Settings', + name: 'goToSettings', + ); + } + + String get allowsTwakeMailToNotifyYouWhenANewMessageArrivesOnYourPhone { + return Intl.message( + 'Allows Twake Mail to notify you when a new message arrives on your phone', + name: 'allowsTwakeMailToNotifyYouWhenANewMessageArrivesOnYourPhone', + ); + } + + String get showNotifications { + return Intl.message( + 'Show Notifications', + name: 'showNotifications', + ); + } } \ No newline at end of file