Files
workavia-mail-front/lib/main/localizations/app_localizations.dart
T
2022-02-10 22:43:09 +07:00

469 lines
9.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:tmail_ui_user/l10n/messages_all.dart';
class AppLocalizations {
static AppLocalizations of(BuildContext context) {
return Localizations.of<AppLocalizations>(context, AppLocalizations)!;
}
static Future<AppLocalizations> load(Locale locale) async {
final name = locale.countryCode == null ? locale.languageCode : locale.toString();
final localeName = Intl.canonicalizedLocale(name);
return initializeMessages(localeName).then((_) {
Intl.defaultLocale = localeName;
return AppLocalizations();
});
}
String get initializing_data {
return Intl.message('Initializing data...',
name: 'initializing_data');
}
String get login_text_slogan {
return Intl.message('Team Mail',
name: 'login_text_slogan');
}
String get prefix_https {
return Intl.message('https://',
name: 'prefix_https');
}
String get email {
return Intl.message('email',
name: 'email');
}
String get password {
return Intl.message('password',
name: 'password');
}
String get login {
return Intl.message('Login',
name: 'login');
}
String get login_text_login_to_continue {
return Intl.message('Please login to continue',
name: 'login_text_login_to_continue');
}
String get unknown_error_login_message {
return Intl.message('Unknown error occurred, please try again',
name: 'unknown_error_login_message');
}
String get search_folder {
return Intl.message(
'Search folder',
name: 'search_folder',
);
}
String get storage {
return Intl.message(
'STORAGE',
name: 'storage',
);
}
String get my_folders {
return Intl.message(
'MY FOLDERS',
name: 'my_folders',
);
}
String get new_folder {
return Intl.message(
'New folder',
name: 'new_folder',
);
}
String get reply_all {
return Intl.message(
'Reply all',
name: 'reply_all',
);
}
String get reply {
return Intl.message(
'Reply',
name: 'reply',
);
}
String get forward {
return Intl.message(
'Forward',
name: 'forward',
);
}
String get no_emails {
return Intl.message(
'No emails in this mailbox',
name: 'no_emails',
);
}
String get no_mail_selected {
return Intl.message(
'No email selected',
name: 'no_mail_selected',
);
}
String get from_email_address_prefix {
return Intl.message(
'From',
name: 'from_email_address_prefix',
);
}
String get to_email_address_prefix {
return Intl.message(
'To',
name: 'to_email_address_prefix',
);
}
String get unread_email_notification {
return Intl.message(
'new',
name: 'unread_email_notification',
);
}
String get bcc_email_address_prefix {
return Intl.message(
'Bcc',
name: 'bcc_email_address_prefix',
);
}
String get cc_email_address_prefix {
return Intl.message(
'Cc',
name: 'cc_email_address_prefix',
);
}
String get hint_text_email_address {
return Intl.message(
'Name or email address',
name: 'hint_text_email_address',
);
}
String get subject_email {
return Intl.message(
'Subject',
name: 'subject_email',
);
}
String get hint_content_email_composer {
return Intl.message(
'Start writing your email here',
name: 'hint_content_email_composer',
);
}
String header_email_quoted(String sentDate, String emailAddress) {
return Intl.message(
'On $sentDate, from $emailAddress',
name: 'header_email_quoted',
args: [sentDate, emailAddress]
);
}
String get prefix_reply_email {
return Intl.message(
'Re:',
name: 'prefix_reply_email',
);
}
String get prefix_forward_email {
return Intl.message(
'Fwd:',
name: 'prefix_forward_email',
);
}
String get your_email_being_sent {
return Intl.message(
'Your email being sent...',
name: 'your_email_being_sent',
);
}
String get your_email_should_have_at_least_one_recipient {
return Intl.message(
'Your email should have at least one recipient',
name: 'your_email_should_have_at_least_one_recipient',
);
}
String get message_sent {
return Intl.message(
'Message sent',
name: 'message_sent',
);
}
String get error_message_sent {
return Intl.message(
'Error message sent',
name: 'error_message_sent',
);
}
String count_email_selected(int count) {
return Intl.message(
'$count selected',
name: 'count_email_selected',
args: [count]
);
}
String get mark_as_unread {
return Intl.message(
'Mark as unread',
name: 'mark_as_unread',
);
}
String get mark_as_read {
return Intl.message(
'Mark as read',
name: 'mark_as_read',
);
}
String get move_to_trash {
return Intl.message(
'Move to trash',
name: 'move_to_trash',
);
}
String get move_to_mailbox {
return Intl.message(
'Move to mailbox',
name: 'move_to_mailbox',
);
}
String get mark_as_star {
return Intl.message(
'Star',
name: 'mark_as_star',
);
}
String get move_to_spam {
return Intl.message(
'Move to spam',
name: 'move_to_spam',
);
}
String marked_multiple_item_as_read(int count) {
return Intl.message(
'Marked $count item as read',
name: 'marked_multiple_item_as_read',
args: [count]
);
}
String marked_multiple_item_as_unread(int count) {
return Intl.message(
'Marked $count item as unread',
name: 'marked_multiple_item_as_unread',
args: [count]
);
}
String get an_error_occurred {
return Intl.message(
'Error! An error occurred. Please try again later.',
name: 'an_error_occurred',
);
}
String get attachment_download_failed {
return Intl.message(
'Attachment download failed',
name: 'attachment_download_failed',
);
}
String downloading_file(String fileName) {
return Intl.message(
'Downloading $fileName',
name: 'downloading_file',
args: [fileName]
);
}
String get preparing_to_export {
return Intl.message(
'Preparing to export',
name: 'preparing_to_export'
);
}
String get cancel {
return Intl.message(
'Cancel',
name: 'cancel'
);
}
String get user_cancel_download_file {
return Intl.message(
'User cancel download file',
name: 'user_cancel_download_file'
);
}
String get you_need_to_grant_files_permission_to_download_attachments {
return Intl.message(
'You need to grant files permission to download attachments',
name: 'you_need_to_grant_files_permission_to_download_attachments'
);
}
String count_attachment(int count) {
return Intl.message(
'$count attachments',
name: 'count_attachment',
args: [count]
);
}
String get attach_file_prepare_text {
return Intl.message(
'Preparing to attach file...',
name: 'attach_file_prepare_text'
);
}
String get can_not_upload_this_file_as_attachments {
return Intl.message(
'Can not upload this file as attachments',
name: 'can_not_upload_this_file_as_attachments'
);
}
String get attachments_uploaded_successfully {
return Intl.message(
'Attachments uploaded successfully',
name: 'attachments_uploaded_successfully'
);
}
String get pick_attachments {
return Intl.message(
'Pick attachments',
name: 'pick_attachments'
);
}
String get photos_and_videos {
return Intl.message(
'Photos and Videos',
name: 'photos_and_videos',
);
}
String get browse {
return Intl.message(
'Browse',
name: 'browse',
);
}
String moved_to_mailbox(String destinationMailboxPath) {
return Intl.message(
'Moved to $destinationMailboxPath',
name: 'moved_to_mailbox',
args: [destinationMailboxPath]
);
}
String get undo_action {
return Intl.message(
'UNDO',
name: 'undo_action'
);
}
String get mark_as_unstar {
return Intl.message(
'Unstar',
name: 'mark_as_unstar',
);
}
String marked_star_multiple_item(int count) {
return Intl.message(
'Marked star $count item',
name: 'marked_star_multiple_item',
args: [count]
);
}
String marked_unstar_multiple_item(int count) {
return Intl.message(
'Marked unstar $count item',
name: 'marked_unstar_multiple_item',
args: [count]
);
}
String get search_mail {
return Intl.message(
'Search mail',
name: 'search_mail',
);
}
String get prefix_suggestion_search {
return Intl.message(
'Search for',
name: 'prefix_suggestion_search',
);
}
String get no_emails_matching_your_search {
return Intl.message(
'No emails are matching your search',
name: 'no_emails_matching_your_search',
);
}
String get results {
return Intl.message(
'Results',
name: 'results',
);
}
String get edit {
return Intl.message('Edit',
name: 'edit');
}
}