1563 lines
42 KiB
Dart
1563 lines
42 KiB
Dart
import 'dart:async';
|
||
|
||
import 'package:flutter/foundation.dart';
|
||
import 'package:flutter/widgets.dart';
|
||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||
import 'package:intl/intl.dart' as intl;
|
||
|
||
import 'app_localizations_en.dart';
|
||
import 'app_localizations_ru.dart';
|
||
|
||
// ignore_for_file: type=lint
|
||
|
||
/// Callers can lookup localized strings with an instance of AppLocalizations
|
||
/// returned by `AppLocalizations.of(context)`.
|
||
///
|
||
/// Applications need to include `AppLocalizations.delegate()` in their app's
|
||
/// `localizationDelegates` list, and the locales they support in the app's
|
||
/// `supportedLocales` list. For example:
|
||
///
|
||
/// ```dart
|
||
/// import 'i18n/app_localizations.dart';
|
||
///
|
||
/// return MaterialApp(
|
||
/// localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||
/// supportedLocales: AppLocalizations.supportedLocales,
|
||
/// home: MyApplicationHome(),
|
||
/// );
|
||
/// ```
|
||
///
|
||
/// ## Update pubspec.yaml
|
||
///
|
||
/// Please make sure to update your pubspec.yaml to include the following
|
||
/// packages:
|
||
///
|
||
/// ```yaml
|
||
/// dependencies:
|
||
/// # Internationalization support.
|
||
/// flutter_localizations:
|
||
/// sdk: flutter
|
||
/// intl: any # Use the pinned version from flutter_localizations
|
||
///
|
||
/// # Rest of dependencies
|
||
/// ```
|
||
///
|
||
/// ## iOS Applications
|
||
///
|
||
/// iOS applications define key application metadata, including supported
|
||
/// locales, in an Info.plist file that is built into the application bundle.
|
||
/// To configure the locales supported by your app, you’ll need to edit this
|
||
/// file.
|
||
///
|
||
/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file.
|
||
/// Then, in the Project Navigator, open the Info.plist file under the Runner
|
||
/// project’s Runner folder.
|
||
///
|
||
/// Next, select the Information Property List item, select Add Item from the
|
||
/// Editor menu, then select Localizations from the pop-up menu.
|
||
///
|
||
/// Select and expand the newly-created Localizations item then, for each
|
||
/// locale your application supports, add a new item and select the locale
|
||
/// you wish to add from the pop-up menu in the Value field. This list should
|
||
/// be consistent with the languages listed in the AppLocalizations.supportedLocales
|
||
/// property.
|
||
abstract class AppLocalizations {
|
||
AppLocalizations(String locale)
|
||
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
|
||
|
||
final String localeName;
|
||
|
||
static AppLocalizations? of(BuildContext context) {
|
||
return Localizations.of<AppLocalizations>(context, AppLocalizations);
|
||
}
|
||
|
||
static const LocalizationsDelegate<AppLocalizations> delegate =
|
||
_AppLocalizationsDelegate();
|
||
|
||
/// A list of this localizations delegate along with the default localizations
|
||
/// delegates.
|
||
///
|
||
/// Returns a list of localizations delegates containing this delegate along with
|
||
/// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate,
|
||
/// and GlobalWidgetsLocalizations.delegate.
|
||
///
|
||
/// Additional delegates can be added by appending to this list in
|
||
/// MaterialApp. This list does not have to be used at all if a custom list
|
||
/// of delegates is preferred or required.
|
||
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
|
||
<LocalizationsDelegate<dynamic>>[
|
||
delegate,
|
||
GlobalMaterialLocalizations.delegate,
|
||
GlobalCupertinoLocalizations.delegate,
|
||
GlobalWidgetsLocalizations.delegate,
|
||
];
|
||
|
||
/// A list of this localizations delegate's supported locales.
|
||
static const List<Locale> supportedLocales = <Locale>[
|
||
Locale('en'),
|
||
Locale('ru'),
|
||
];
|
||
|
||
/// No description provided for @login.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Login'**
|
||
String get login;
|
||
|
||
/// No description provided for @logout.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Logout'**
|
||
String get logout;
|
||
|
||
/// No description provided for @profile.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Profile'**
|
||
String get profile;
|
||
|
||
/// No description provided for @signup.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Sign up'**
|
||
String get signup;
|
||
|
||
/// No description provided for @username.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Email'**
|
||
String get username;
|
||
|
||
/// No description provided for @usernameHint.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'email@example.com'**
|
||
String get usernameHint;
|
||
|
||
/// No description provided for @usernameErrorInvalid.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Provide a valid email address'**
|
||
String get usernameErrorInvalid;
|
||
|
||
/// No description provided for @usernameUnknownTLD.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Domain .{domain} is not known, please, check it'**
|
||
String usernameUnknownTLD(Object domain);
|
||
|
||
/// No description provided for @password.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Password'**
|
||
String get password;
|
||
|
||
/// No description provided for @confirmPassword.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Confirm password'**
|
||
String get confirmPassword;
|
||
|
||
/// No description provided for @passwordValidationRuleDigit.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'has digit'**
|
||
String get passwordValidationRuleDigit;
|
||
|
||
/// No description provided for @passwordValidationRuleUpperCase.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'has uppercase letter'**
|
||
String get passwordValidationRuleUpperCase;
|
||
|
||
/// No description provided for @passwordValidationRuleLowerCase.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'has lowercase letter'**
|
||
String get passwordValidationRuleLowerCase;
|
||
|
||
/// No description provided for @passwordValidationRuleSpecialCharacter.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'has special character letter'**
|
||
String get passwordValidationRuleSpecialCharacter;
|
||
|
||
/// No description provided for @passwordValidationRuleMinCharacters.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'is {charNum} characters long at least'**
|
||
String passwordValidationRuleMinCharacters(Object charNum);
|
||
|
||
/// No description provided for @passwordsDoNotMatch.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Passwords do not match'**
|
||
String get passwordsDoNotMatch;
|
||
|
||
/// No description provided for @passwordValidationError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Check that your password {matchesCriteria}'**
|
||
String passwordValidationError(Object matchesCriteria);
|
||
|
||
/// No description provided for @notificationError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error occurred: {error}'**
|
||
String notificationError(Object error);
|
||
|
||
/// No description provided for @loginUserNotFound.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Account {account} has not been registered in the system'**
|
||
String loginUserNotFound(Object account);
|
||
|
||
/// No description provided for @loginPasswordIncorrect.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Authorization failed, please check your password'**
|
||
String get loginPasswordIncorrect;
|
||
|
||
/// No description provided for @internalErrorOccurred.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'An internal server error occurred: {error}, we already know about it and working hard to fix it'**
|
||
String internalErrorOccurred(Object error);
|
||
|
||
/// No description provided for @noErrorInformation.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Some error occurred, but we have not error information. We are already investigating the issue'**
|
||
String get noErrorInformation;
|
||
|
||
/// No description provided for @yourName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Your name'**
|
||
String get yourName;
|
||
|
||
/// No description provided for @nameHint.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'John Doe'**
|
||
String get nameHint;
|
||
|
||
/// No description provided for @errorPageNotFoundTitle.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Page Not Found'**
|
||
String get errorPageNotFoundTitle;
|
||
|
||
/// No description provided for @errorPageNotFoundMessage.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Oops! We couldn\'t find that page.'**
|
||
String get errorPageNotFoundMessage;
|
||
|
||
/// No description provided for @errorPageNotFoundHint.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'The page you\'re looking for doesn\'t exist or has been moved. Please check the URL or return to the home page.'**
|
||
String get errorPageNotFoundHint;
|
||
|
||
/// No description provided for @errorUnknown.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Unknown error occurred'**
|
||
String get errorUnknown;
|
||
|
||
/// No description provided for @unknown.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'unknown'**
|
||
String get unknown;
|
||
|
||
/// No description provided for @goToLogin.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Go to Login'**
|
||
String get goToLogin;
|
||
|
||
/// No description provided for @goBack.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Go Back'**
|
||
String get goBack;
|
||
|
||
/// No description provided for @goToMainPage.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Go to Main Page'**
|
||
String get goToMainPage;
|
||
|
||
/// No description provided for @goToSignUp.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Go to Sign Up'**
|
||
String get goToSignUp;
|
||
|
||
/// No description provided for @signupError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Failed to signup: {error}'**
|
||
String signupError(Object error);
|
||
|
||
/// No description provided for @signupSuccess.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Email confirmation message has been sent to {email}. Please, open it and click link to activate your account.'**
|
||
String signupSuccess(Object email);
|
||
|
||
/// No description provided for @connectivityError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Cannot reach the server at {serverAddress}. Check your network and try again.'**
|
||
String connectivityError(Object serverAddress);
|
||
|
||
/// No description provided for @errorAccountExists.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Account already exists'**
|
||
String get errorAccountExists;
|
||
|
||
/// No description provided for @errorAccountNotVerified.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Your account hasn\'t been verified yet. Please check your email to complete the verification'**
|
||
String get errorAccountNotVerified;
|
||
|
||
/// No description provided for @errorLoginUnauthorized.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Login or password is incorrect. Please try again'**
|
||
String get errorLoginUnauthorized;
|
||
|
||
/// No description provided for @errorInternalError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'An internal error occurred. We\'re aware of the issue and working to resolve it. Please try again later'**
|
||
String get errorInternalError;
|
||
|
||
/// No description provided for @errorVerificationTokenNotFound.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Account for verification not found. Sign up again'**
|
||
String get errorVerificationTokenNotFound;
|
||
|
||
/// No description provided for @created.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Created'**
|
||
String get created;
|
||
|
||
/// No description provided for @edited.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edited'**
|
||
String get edited;
|
||
|
||
/// No description provided for @errorDataConflict.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'We can’t process your data because it has conflicting or contradictory information.'**
|
||
String get errorDataConflict;
|
||
|
||
/// No description provided for @errorAccessDenied.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'You do not have permission to access this resource. If you need access, please contact an administrator.'**
|
||
String get errorAccessDenied;
|
||
|
||
/// No description provided for @errorBrokenPayload.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'The data you sent is invalid or incomplete. Please check your submission and try again.'**
|
||
String get errorBrokenPayload;
|
||
|
||
/// No description provided for @errorInvalidArgument.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'One or more arguments are invalid. Verify your input and try again.'**
|
||
String get errorInvalidArgument;
|
||
|
||
/// No description provided for @errorBrokenReference.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'The resource you\'re trying to access could not be referenced. It may have been moved or deleted.'**
|
||
String get errorBrokenReference;
|
||
|
||
/// No description provided for @errorInvalidQueryParameter.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'One or more query parameters are missing or incorrect. Check them and try again.'**
|
||
String get errorInvalidQueryParameter;
|
||
|
||
/// No description provided for @errorNotImplemented.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'This feature is not yet available. Please try again later or contact support.'**
|
||
String get errorNotImplemented;
|
||
|
||
/// No description provided for @errorLicenseRequired.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'A valid license is required to perform this action. Please contact your administrator.'**
|
||
String get errorLicenseRequired;
|
||
|
||
/// No description provided for @errorNotFound.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'We couldn\'t find the resource you requested. It may have been removed or is temporarily unavailable.'**
|
||
String get errorNotFound;
|
||
|
||
/// No description provided for @errorNameMissing.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Please provide a name before continuing.'**
|
||
String get errorNameMissing;
|
||
|
||
/// No description provided for @errorEmailMissing.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Please provide an email address before continuing.'**
|
||
String get errorEmailMissing;
|
||
|
||
/// No description provided for @errorPasswordMissing.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Please provide a password before continuing.'**
|
||
String get errorPasswordMissing;
|
||
|
||
/// No description provided for @errorEmailNotRegistered.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'We could not find an account associated with that email address.'**
|
||
String get errorEmailNotRegistered;
|
||
|
||
/// No description provided for @errorDuplicateEmail.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'This email address is already in use. Try another one or reset your password.'**
|
||
String get errorDuplicateEmail;
|
||
|
||
/// No description provided for @showDetailsAction.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Show Details'**
|
||
String get showDetailsAction;
|
||
|
||
/// No description provided for @errorLogin.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error logging in'**
|
||
String get errorLogin;
|
||
|
||
/// Error message displayed when invitation creation fails
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Failed to create invitaiton'**
|
||
String get errorCreatingInvitation;
|
||
|
||
/// No description provided for @footerCompanyName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Sibilla Solutions LTD'**
|
||
String get footerCompanyName;
|
||
|
||
/// No description provided for @footerAddress.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'27, Pindarou Street, Alpha Business Centre, Block B 7th Floor, 1060 Nicosia, Cyprus'**
|
||
String get footerAddress;
|
||
|
||
/// No description provided for @footerSupport.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Support'**
|
||
String get footerSupport;
|
||
|
||
/// No description provided for @footerEmail.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Email TBD'**
|
||
String get footerEmail;
|
||
|
||
/// No description provided for @footerPhoneLabel.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Phone'**
|
||
String get footerPhoneLabel;
|
||
|
||
/// No description provided for @footerPhone.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'+357 22 000 253'**
|
||
String get footerPhone;
|
||
|
||
/// No description provided for @footerTermsOfService.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Terms of Service'**
|
||
String get footerTermsOfService;
|
||
|
||
/// No description provided for @footerPrivacyPolicy.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Privacy Policy'**
|
||
String get footerPrivacyPolicy;
|
||
|
||
/// No description provided for @footerCookiePolicy.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Cookie Policy'**
|
||
String get footerCookiePolicy;
|
||
|
||
/// No description provided for @navigationLogout.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Logout'**
|
||
String get navigationLogout;
|
||
|
||
/// No description provided for @dashboard.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Dashboard'**
|
||
String get dashboard;
|
||
|
||
/// No description provided for @navigationUsersSettings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Users'**
|
||
String get navigationUsersSettings;
|
||
|
||
/// No description provided for @navigationRolesSettings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Roles'**
|
||
String get navigationRolesSettings;
|
||
|
||
/// No description provided for @navigationPermissionsSettings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Permissions'**
|
||
String get navigationPermissionsSettings;
|
||
|
||
/// No description provided for @usersManagement.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'User Management'**
|
||
String get usersManagement;
|
||
|
||
/// No description provided for @navigationOrganizationSettings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Organization settings'**
|
||
String get navigationOrganizationSettings;
|
||
|
||
/// No description provided for @navigationAccountSettings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Profile settings'**
|
||
String get navigationAccountSettings;
|
||
|
||
/// No description provided for @twoFactorPrompt.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter the 6-digit code we sent to your device'**
|
||
String get twoFactorPrompt;
|
||
|
||
/// No description provided for @twoFactorResend.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Didn’t receive a code? Resend'**
|
||
String get twoFactorResend;
|
||
|
||
/// No description provided for @twoFactorTitle.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Two-Factor Authentication'**
|
||
String get twoFactorTitle;
|
||
|
||
/// No description provided for @twoFactorError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Invalid code. Please try again.'**
|
||
String get twoFactorError;
|
||
|
||
/// No description provided for @payoutNavDashboard.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Dashboard'**
|
||
String get payoutNavDashboard;
|
||
|
||
/// No description provided for @payoutNavSendPayout.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Send payout'**
|
||
String get payoutNavSendPayout;
|
||
|
||
/// No description provided for @payoutNavRecipients.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Recipients'**
|
||
String get payoutNavRecipients;
|
||
|
||
/// No description provided for @payoutNavReports.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Reports'**
|
||
String get payoutNavReports;
|
||
|
||
/// No description provided for @payoutNavSettings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Settings'**
|
||
String get payoutNavSettings;
|
||
|
||
/// No description provided for @payoutNavLogout.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Logout'**
|
||
String get payoutNavLogout;
|
||
|
||
/// No description provided for @payoutNavMethods.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Payouts'**
|
||
String get payoutNavMethods;
|
||
|
||
/// No description provided for @expand.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Expand'**
|
||
String get expand;
|
||
|
||
/// No description provided for @collapse.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Collapse'**
|
||
String get collapse;
|
||
|
||
/// Title of the recipient address book page
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Recipient address book'**
|
||
String get pageTitleRecipients;
|
||
|
||
/// Tooltip and button label to add a new recipient
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Add new'**
|
||
String get actionAddNew;
|
||
|
||
/// Column header for who manages the payout data
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Data owner'**
|
||
String get colDataOwner;
|
||
|
||
/// Column header for recipient avatar
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Avatar'**
|
||
String get colAvatar;
|
||
|
||
/// Column header for recipient name
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Name'**
|
||
String get colName;
|
||
|
||
/// Column header for recipient email address
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Email'**
|
||
String get colEmail;
|
||
|
||
/// Column header for payout readiness status
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Status'**
|
||
String get colStatus;
|
||
|
||
/// Status indicating payouts can be sent immediately
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Ready'**
|
||
String get statusReady;
|
||
|
||
/// Status indicating recipient is registered but not yet fully ready
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Registered'**
|
||
String get statusRegistered;
|
||
|
||
/// Status indicating recipient has not completed registration
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Not registered'**
|
||
String get statusNotRegistered;
|
||
|
||
/// Label for recipients whose payout data is managed internally by the user/company
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Managed by me'**
|
||
String get typeInternal;
|
||
|
||
/// Label for recipients who manage their own payout data
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Self‑managed'**
|
||
String get typeExternal;
|
||
|
||
/// No description provided for @searchHint.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Search recipients'**
|
||
String get searchHint;
|
||
|
||
/// No description provided for @colActions.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Actions'**
|
||
String get colActions;
|
||
|
||
/// No description provided for @menuEdit.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit'**
|
||
String get menuEdit;
|
||
|
||
/// No description provided for @menuSendPayout.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Send payout'**
|
||
String get menuSendPayout;
|
||
|
||
/// No description provided for @tooltipRowActions.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'More actions'**
|
||
String get tooltipRowActions;
|
||
|
||
/// No description provided for @accountSettings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Account Settings'**
|
||
String get accountSettings;
|
||
|
||
/// No description provided for @accountNameUpdateError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Failed to update account name'**
|
||
String get accountNameUpdateError;
|
||
|
||
/// No description provided for @settingsSuccessfullyUpdated.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Settings successfully updated'**
|
||
String get settingsSuccessfullyUpdated;
|
||
|
||
/// No description provided for @language.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Language'**
|
||
String get language;
|
||
|
||
/// No description provided for @failedToUpdateLanguage.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Failed to update language'**
|
||
String get failedToUpdateLanguage;
|
||
|
||
/// No description provided for @settingsImageUpdateError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Couldn\'t update the image'**
|
||
String get settingsImageUpdateError;
|
||
|
||
/// No description provided for @settingsImageTitle.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Image'**
|
||
String get settingsImageTitle;
|
||
|
||
/// No description provided for @settingsImageHint.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Tap to change the image'**
|
||
String get settingsImageHint;
|
||
|
||
/// No description provided for @accountName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Name'**
|
||
String get accountName;
|
||
|
||
/// No description provided for @accountNameHint.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Specify your name'**
|
||
String get accountNameHint;
|
||
|
||
/// No description provided for @avatar.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Profile photo'**
|
||
String get avatar;
|
||
|
||
/// No description provided for @avatarHint.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Tap to update'**
|
||
String get avatarHint;
|
||
|
||
/// No description provided for @avatarUpdateError.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Failed to update profile photo'**
|
||
String get avatarUpdateError;
|
||
|
||
/// No description provided for @settings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Settings'**
|
||
String get settings;
|
||
|
||
/// No description provided for @notSet.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'not set'**
|
||
String get notSet;
|
||
|
||
/// No description provided for @search.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Search...'**
|
||
String get search;
|
||
|
||
/// No description provided for @ok.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Ok'**
|
||
String get ok;
|
||
|
||
/// No description provided for @cancel.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Cancel'**
|
||
String get cancel;
|
||
|
||
/// No description provided for @confirm.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Confirm'**
|
||
String get confirm;
|
||
|
||
/// No description provided for @back.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Back'**
|
||
String get back;
|
||
|
||
/// Title of the operation history page
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Operation history'**
|
||
String get operationfryTitle;
|
||
|
||
/// Label for the filters expansion panel
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Filters'**
|
||
String get filters;
|
||
|
||
/// Label for the date‐range filter
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Period'**
|
||
String get period;
|
||
|
||
/// Placeholder when no period is selected
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Select period'**
|
||
String get selectPeriod;
|
||
|
||
/// Button text to apply the filters
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Apply'**
|
||
String get apply;
|
||
|
||
/// Template for a single status filter chip
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'{status}'**
|
||
String status(String status);
|
||
|
||
/// Status indicating the operation succeeded
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Successful'**
|
||
String get operationStatusSuccessful;
|
||
|
||
/// Status indicating the operation is pending
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Pending'**
|
||
String get operationStatusPending;
|
||
|
||
/// Status indicating the operation failed
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Unsuccessful'**
|
||
String get operationStatusUnsuccessful;
|
||
|
||
/// Table column header for status
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Status'**
|
||
String get statusColumn;
|
||
|
||
/// Table column header for file name
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'File name'**
|
||
String get fileNameColumn;
|
||
|
||
/// Table column header for the original amount
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Amount'**
|
||
String get amountColumn;
|
||
|
||
/// Table column header for the converted amount
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'To amount'**
|
||
String get toAmountColumn;
|
||
|
||
/// Table column header for the payment ID
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Pay ID'**
|
||
String get payIdColumn;
|
||
|
||
/// Table column header for the masked card number
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Card number'**
|
||
String get cardNumberColumn;
|
||
|
||
/// Table column header for recipient name
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Name'**
|
||
String get nameColumn;
|
||
|
||
/// Table column header for the date/time
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Date'**
|
||
String get dateColumn;
|
||
|
||
/// Table column header for any comment
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Comment'**
|
||
String get commentColumn;
|
||
|
||
/// No description provided for @paymentConfigTitle.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Where to receive money'**
|
||
String get paymentConfigTitle;
|
||
|
||
/// No description provided for @paymentConfigSubtitle.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Add multiple methods and choose your primary one.'**
|
||
String get paymentConfigSubtitle;
|
||
|
||
/// No description provided for @addPaymentMethod.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Add payment method'**
|
||
String get addPaymentMethod;
|
||
|
||
/// No description provided for @makeMain.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Make primary'**
|
||
String get makeMain;
|
||
|
||
/// No description provided for @advanced.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Advanced'**
|
||
String get advanced;
|
||
|
||
/// No description provided for @fallbackExplanation.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'If the primary method is unavailable, we will try the next enabled one in the list.'**
|
||
String get fallbackExplanation;
|
||
|
||
/// Button label to delete a payment method
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Delete'**
|
||
String get delete;
|
||
|
||
/// Confirmation dialog message shown before a payment method is removed
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Are you sure you want to delete this payment method?'**
|
||
String get deletePaymentConfirmation;
|
||
|
||
/// Button label to edit a payment method
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit'**
|
||
String get edit;
|
||
|
||
/// Tooltip for an overflow menu button that reveals extra actions for a payment method
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'More actions'**
|
||
String get moreActions;
|
||
|
||
/// No description provided for @noPayouts.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No Payouts'**
|
||
String get noPayouts;
|
||
|
||
/// No description provided for @enterBankName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter bank name'**
|
||
String get enterBankName;
|
||
|
||
/// No description provided for @paymentType.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Payment Method Type'**
|
||
String get paymentType;
|
||
|
||
/// No description provided for @selectPaymentType.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Please select a payment method type'**
|
||
String get selectPaymentType;
|
||
|
||
/// No description provided for @paymentTypeCard.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Credit Card'**
|
||
String get paymentTypeCard;
|
||
|
||
/// No description provided for @paymentTypeBankAccount.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Russian Bank Account'**
|
||
String get paymentTypeBankAccount;
|
||
|
||
/// No description provided for @paymentTypeIban.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'IBAN'**
|
||
String get paymentTypeIban;
|
||
|
||
/// No description provided for @paymentTypeWallet.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Wallet'**
|
||
String get paymentTypeWallet;
|
||
|
||
/// No description provided for @cardNumber.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Card Number'**
|
||
String get cardNumber;
|
||
|
||
/// No description provided for @enterCardNumber.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter the card number'**
|
||
String get enterCardNumber;
|
||
|
||
/// No description provided for @cardholderName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Cardholder Name'**
|
||
String get cardholderName;
|
||
|
||
/// No description provided for @iban.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'IBAN'**
|
||
String get iban;
|
||
|
||
/// No description provided for @enterIban.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter IBAN'**
|
||
String get enterIban;
|
||
|
||
/// No description provided for @bic.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'BIC'**
|
||
String get bic;
|
||
|
||
/// No description provided for @bankName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Bank Name'**
|
||
String get bankName;
|
||
|
||
/// No description provided for @accountHolder.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Account Holder'**
|
||
String get accountHolder;
|
||
|
||
/// No description provided for @enterAccountHolder.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter account holder'**
|
||
String get enterAccountHolder;
|
||
|
||
/// No description provided for @enterBic.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter BIC'**
|
||
String get enterBic;
|
||
|
||
/// No description provided for @walletId.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Wallet ID'**
|
||
String get walletId;
|
||
|
||
/// No description provided for @enterWalletId.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter wallet ID'**
|
||
String get enterWalletId;
|
||
|
||
/// No description provided for @recipients.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Recipients'**
|
||
String get recipients;
|
||
|
||
/// No description provided for @recipientName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Recipient Name'**
|
||
String get recipientName;
|
||
|
||
/// No description provided for @enterRecipientName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter recipient name'**
|
||
String get enterRecipientName;
|
||
|
||
/// No description provided for @inn.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'INN'**
|
||
String get inn;
|
||
|
||
/// No description provided for @enterInn.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter INN'**
|
||
String get enterInn;
|
||
|
||
/// No description provided for @kpp.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'KPP'**
|
||
String get kpp;
|
||
|
||
/// No description provided for @enterKpp.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter KPP'**
|
||
String get enterKpp;
|
||
|
||
/// No description provided for @accountNumber.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Account Number'**
|
||
String get accountNumber;
|
||
|
||
/// No description provided for @enterAccountNumber.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter account number'**
|
||
String get enterAccountNumber;
|
||
|
||
/// No description provided for @correspondentAccount.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Correspondent Account'**
|
||
String get correspondentAccount;
|
||
|
||
/// No description provided for @enterCorrespondentAccount.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter correspondent account'**
|
||
String get enterCorrespondentAccount;
|
||
|
||
/// No description provided for @bik.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'BIK'**
|
||
String get bik;
|
||
|
||
/// No description provided for @enterBik.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter BIK'**
|
||
String get enterBik;
|
||
|
||
/// No description provided for @add.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Add'**
|
||
String get add;
|
||
|
||
/// No description provided for @expiryDate.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Expiry (MM/YY)'**
|
||
String get expiryDate;
|
||
|
||
/// No description provided for @firstName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'First Name'**
|
||
String get firstName;
|
||
|
||
/// No description provided for @enterFirstName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter First Name'**
|
||
String get enterFirstName;
|
||
|
||
/// No description provided for @lastName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Last Name'**
|
||
String get lastName;
|
||
|
||
/// No description provided for @enterLastName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter Last Name'**
|
||
String get enterLastName;
|
||
|
||
/// No description provided for @sendSingle.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Send single transaction'**
|
||
String get sendSingle;
|
||
|
||
/// No description provided for @sendMultiple.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Send multiple transactions'**
|
||
String get sendMultiple;
|
||
|
||
/// No description provided for @addFunds.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Add Funds'**
|
||
String get addFunds;
|
||
|
||
/// No description provided for @close.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Close'**
|
||
String get close;
|
||
|
||
/// No description provided for @multiplePayout.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Multiple Payout'**
|
||
String get multiplePayout;
|
||
|
||
/// No description provided for @howItWorks.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'How it works?'**
|
||
String get howItWorks;
|
||
|
||
/// No description provided for @exampleTitle.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'File Format & Sample'**
|
||
String get exampleTitle;
|
||
|
||
/// No description provided for @downloadSampleCSV.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Download sample.csv'**
|
||
String get downloadSampleCSV;
|
||
|
||
/// No description provided for @tokenColumn.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Token (required)'**
|
||
String get tokenColumn;
|
||
|
||
/// No description provided for @currency.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Currency'**
|
||
String get currency;
|
||
|
||
/// No description provided for @amount.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Amount'**
|
||
String get amount;
|
||
|
||
/// No description provided for @comment.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Comment'**
|
||
String get comment;
|
||
|
||
/// No description provided for @uploadCSV.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Upload your CSV'**
|
||
String get uploadCSV;
|
||
|
||
/// No description provided for @upload.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Upload'**
|
||
String get upload;
|
||
|
||
/// No description provided for @hintUpload.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Supported format: .CSV · Max size 1 MB'**
|
||
String get hintUpload;
|
||
|
||
/// No description provided for @uploadHistory.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Upload History'**
|
||
String get uploadHistory;
|
||
|
||
/// No description provided for @payout.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Payout'**
|
||
String get payout;
|
||
|
||
/// No description provided for @sendTo.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Send Payout To'**
|
||
String get sendTo;
|
||
|
||
/// No description provided for @send.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Send Payout'**
|
||
String get send;
|
||
|
||
/// No description provided for @recipientPaysFee.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Recipient pays the fee'**
|
||
String get recipientPaysFee;
|
||
|
||
/// Label showing the amount sent
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Sent amount: \${amount}'**
|
||
String sentAmount(String amount);
|
||
|
||
/// Label showing the transaction fee
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Fee: \${fee}'**
|
||
String fee(String fee);
|
||
|
||
/// Label showing how much the recipient will receive
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Recipient will receive: \${amount}'**
|
||
String recipientWillReceive(String amount);
|
||
|
||
/// Label showing the total amount of the transaction
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Total: \${total}'**
|
||
String total(String total);
|
||
|
||
/// No description provided for @hideDetails.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Hide Details'**
|
||
String get hideDetails;
|
||
|
||
/// No description provided for @showDetails.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Show Details'**
|
||
String get showDetails;
|
||
|
||
/// No description provided for @whereGetMoney.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Source of funds for debit'**
|
||
String get whereGetMoney;
|
||
|
||
/// No description provided for @details.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Details'**
|
||
String get details;
|
||
|
||
/// No description provided for @addRecipient.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Add Recipient'**
|
||
String get addRecipient;
|
||
|
||
/// No description provided for @editRecipient.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit Recipient'**
|
||
String get editRecipient;
|
||
|
||
/// No description provided for @saveRecipient.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Save Recipient'**
|
||
String get saveRecipient;
|
||
|
||
/// No description provided for @choosePaymentMethod.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Payment Methods (choose at least 1)'**
|
||
String get choosePaymentMethod;
|
||
|
||
/// No description provided for @recipientFormRule.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Recipient must have at least one payment method'**
|
||
String get recipientFormRule;
|
||
|
||
/// No description provided for @allStatus.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'All'**
|
||
String get allStatus;
|
||
|
||
/// No description provided for @readyStatus.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Ready'**
|
||
String get readyStatus;
|
||
|
||
/// No description provided for @registeredStatus.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Registered'**
|
||
String get registeredStatus;
|
||
|
||
/// No description provided for @notRegisteredStatus.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Not registered'**
|
||
String get notRegisteredStatus;
|
||
|
||
/// No description provided for @noRecipientSelected.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No recipient selected'**
|
||
String get noRecipientSelected;
|
||
|
||
/// No description provided for @companyName.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Name of your company'**
|
||
String get companyName;
|
||
|
||
/// No description provided for @companynameRequired.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Company name required'**
|
||
String get companynameRequired;
|
||
|
||
/// No description provided for @errorSignUp.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error occured while signing up, try again later'**
|
||
String get errorSignUp;
|
||
|
||
/// No description provided for @companyDescription.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Company Description'**
|
||
String get companyDescription;
|
||
|
||
/// No description provided for @companyDescriptionHint.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Describe any of the fields of the Company\'s business'**
|
||
String get companyDescriptionHint;
|
||
|
||
/// No description provided for @optional.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'optional'**
|
||
String get optional;
|
||
}
|
||
|
||
class _AppLocalizationsDelegate
|
||
extends LocalizationsDelegate<AppLocalizations> {
|
||
const _AppLocalizationsDelegate();
|
||
|
||
@override
|
||
Future<AppLocalizations> load(Locale locale) {
|
||
return SynchronousFuture<AppLocalizations>(lookupAppLocalizations(locale));
|
||
}
|
||
|
||
@override
|
||
bool isSupported(Locale locale) =>
|
||
<String>['en', 'ru'].contains(locale.languageCode);
|
||
|
||
@override
|
||
bool shouldReload(_AppLocalizationsDelegate old) => false;
|
||
}
|
||
|
||
AppLocalizations lookupAppLocalizations(Locale locale) {
|
||
// Lookup logic when only language code is specified.
|
||
switch (locale.languageCode) {
|
||
case 'en':
|
||
return AppLocalizationsEn();
|
||
case 'ru':
|
||
return AppLocalizationsRu();
|
||
}
|
||
|
||
throw FlutterError(
|
||
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
|
||
'an issue with the localizations generation tool. Please file an issue '
|
||
'on GitHub with a reproducible sample app and the gen-l10n configuration '
|
||
'that was used.',
|
||
);
|
||
}
|