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_ar.dart'; import 'app_localizations_en.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 'l10n/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(context, AppLocalizations); } static const LocalizationsDelegate 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> localizationsDelegates = >[ delegate, GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, GlobalWidgetsLocalizations.delegate, ]; /// A list of this localizations delegate's supported locales. static const List supportedLocales = [ Locale('ar'), Locale('en') ]; /// No description provided for @all_bookmarks. /// /// In en, this message translates to: /// **'All Bookmarks'** String get all_bookmarks; /// No description provided for @economy_title. /// /// In en, this message translates to: /// **'Economy'** String get economy_title; /// No description provided for @social_title. /// /// In en, this message translates to: /// **'Social'** String get social_title; /// No description provided for @environment_title. /// /// In en, this message translates to: /// **'Environment'** String get environment_title; /// No description provided for @economy_title_upper. /// /// In en, this message translates to: /// **'ECONOMY'** String get economy_title_upper; /// No description provided for @social_title_upper. /// /// In en, this message translates to: /// **'SOCIAL'** String get social_title_upper; /// No description provided for @environment_title_upper. /// /// In en, this message translates to: /// **'ENVIRONMENT'** String get environment_title_upper; /// No description provided for @bookmarks. /// /// In en, this message translates to: /// **'Bookmarks'** String get bookmarks; /// No description provided for @searchCountry. /// /// In en, this message translates to: /// **'Search Country'** String get searchCountry; /// No description provided for @feedback_title. /// /// In en, this message translates to: /// **'Feedback'** String get feedback_title; /// No description provided for @feedback_failed_msg. /// /// In en, this message translates to: /// **'Your feedback could not be \n submitted. Please try again'** String get feedback_failed_msg; /// No description provided for @thankYou. /// /// In en, this message translates to: /// **'Thank you'** String get thankYou; /// No description provided for @feedback_message. /// /// In en, this message translates to: /// **'For your valuable feedback, we truly appreciate your input!'** String get feedback_message; /// No description provided for @failed_to_sharefeedback. /// /// In en, this message translates to: /// **'Failed to Share Feedback'** String get failed_to_sharefeedback; /// No description provided for @feedback_submitted. /// /// In en, this message translates to: /// **'Feedback submitted successfully!'** String get feedback_submitted; /// No description provided for @formError. /// /// In en, this message translates to: /// **'Please correct the errors before submitting.'** String get formError; /// No description provided for @feedback_failed. /// /// In en, this message translates to: /// **'Failed to submit feedback: {error}'** String feedback_failed(Object error); /// No description provided for @skip. /// /// In en, this message translates to: /// **'Skip'** String get skip; /// No description provided for @got_it. /// /// In en, this message translates to: /// **'Got it'** String get got_it; /// No description provided for @exit_app. /// /// In en, this message translates to: /// **'Exit App'** String get exit_app; /// No description provided for @exit_confirmation. /// /// In en, this message translates to: /// **'Are you sure you want to exit?'** String get exit_confirmation; /// No description provided for @cancel. /// /// In en, this message translates to: /// **'Cancel'** String get cancel; /// No description provided for @exit. /// /// In en, this message translates to: /// **'Exit'** String get exit; /// No description provided for @bookmark_title. /// /// In en, this message translates to: /// **'Bookmark'** String get bookmark_title; /// No description provided for @failed_To_Remove. /// /// In en, this message translates to: /// **'Failed to Remove'** String get failed_To_Remove; /// No description provided for @removed_from_Bookmark. /// /// In en, this message translates to: /// **'Removed from Bookmark'** String get removed_from_Bookmark; /// No description provided for @added_to_Bookmark. /// /// In en, this message translates to: /// **'Added to Bookmark.'** String get added_to_Bookmark; /// No description provided for @notification. /// /// In en, this message translates to: /// **'Notification'** String get notification; /// No description provided for @register_title. /// /// In en, this message translates to: /// **'Register'** String get register_title; /// No description provided for @register_details. /// /// In en, this message translates to: /// **'Please enter your details'** String get register_details; /// No description provided for @register_name. /// /// In en, this message translates to: /// **'Username'** String get register_name; /// No description provided for @email_id. /// /// In en, this message translates to: /// **'Email ID'** String get email_id; /// No description provided for @enter_name. /// /// In en, this message translates to: /// **'Enter your User Name'** String get enter_name; /// No description provided for @enter_your_email. /// /// In en, this message translates to: /// **'Enter your email'** String get enter_your_email; /// No description provided for @enter_your_password. /// /// In en, this message translates to: /// **'Enter your password'** String get enter_your_password; /// No description provided for @register_Confirm_password. /// /// In en, this message translates to: /// **'Confirm password'** String get register_Confirm_password; /// No description provided for @agree. /// /// In en, this message translates to: /// **'I agree to the '** String get agree; /// No description provided for @t_and. /// /// In en, this message translates to: /// **' and '** String get t_and; /// No description provided for @conditions. /// /// In en, this message translates to: /// **' of FCSC'** String get conditions; /// No description provided for @terms_conditions. /// /// In en, this message translates to: /// **'Terms & Conditions'** String get terms_conditions; /// No description provided for @privacy_policy. /// /// In en, this message translates to: /// **'Privacy Policy'** String get privacy_policy; /// No description provided for @account_confirmation. /// /// In en, this message translates to: /// **'Already have an account?'** String get account_confirmation; /// No description provided for @login_title. /// /// In en, this message translates to: /// **'Login'** String get login_title; /// No description provided for @all_updates. /// /// In en, this message translates to: /// **'All Updates'** String get all_updates; /// No description provided for @app_updates. /// /// In en, this message translates to: /// **'App Updates'** String get app_updates; /// No description provided for @notificationSocial. /// /// In en, this message translates to: /// **'Social'** String get notificationSocial; /// No description provided for @notificationEconomy. /// /// In en, this message translates to: /// **'Economy'** String get notificationEconomy; /// No description provided for @notificationEnvironment. /// /// In en, this message translates to: /// **'Environment'** String get notificationEnvironment; /// No description provided for @notificationFavourites. /// /// In en, this message translates to: /// **'Favourites'** String get notificationFavourites; /// No description provided for @profile_title. /// /// In en, this message translates to: /// **'Edit Profile'** String get profile_title; /// No description provided for @my_profile. /// /// In en, this message translates to: /// **'My Profile'** String get my_profile; /// No description provided for @logout. /// /// In en, this message translates to: /// **'Logout'** String get logout; /// No description provided for @full_name. /// /// In en, this message translates to: /// **'Full Name*'** String get full_name; /// No description provided for @dob. /// /// In en, this message translates to: /// **'Date of Birth*'** String get dob; /// No description provided for @region. /// /// In en, this message translates to: /// **'Country/Region'** String get region; /// No description provided for @preferredLang. /// /// In en, this message translates to: /// **'Preferred Language'** String get preferredLang; /// No description provided for @confirm. /// /// In en, this message translates to: /// **'Confirm'** String get confirm; /// No description provided for @change_password. /// /// In en, this message translates to: /// **'Change Password'** String get change_password; /// No description provided for @delete_account. /// /// In en, this message translates to: /// **'Delete Account'** String get delete_account; /// No description provided for @sure_save_page. /// /// In en, this message translates to: /// **'Are you sure you want to save this page? '** String get sure_save_page; /// No description provided for @not_able_to_change. /// /// In en, this message translates to: /// **'Once saved, you will not be able to change your '** String get not_able_to_change; /// No description provided for @save. /// /// In en, this message translates to: /// **'Save'** String get save; /// No description provided for @name. /// /// In en, this message translates to: /// **'Name'** String get name; /// No description provided for @guide_title. /// /// In en, this message translates to: /// **'User Guide'** String get guide_title; /// No description provided for @nav_home. /// /// In en, this message translates to: /// **'HOME'** String get nav_home; /// No description provided for @nav_uae. /// /// In en, this message translates to: /// **'UAE Numbers'** String get nav_uae; /// No description provided for @nav_competitiveness. /// /// In en, this message translates to: /// **'Competitiveness'** String get nav_competitiveness; /// No description provided for @competitiveness_heading. /// /// In en, this message translates to: /// **'Competitive Reports'** String get competitiveness_heading; /// No description provided for @competitiveness_rank_in. /// /// In en, this message translates to: /// **'Rank in'** String get competitiveness_rank_in; /// No description provided for @competitiveness_rank. /// /// In en, this message translates to: /// **'Rank'** String get competitiveness_rank; /// No description provided for @competitiveness_score_in. /// /// In en, this message translates to: /// **'Score in'** String get competitiveness_score_in; /// No description provided for @competitiveness_score. /// /// In en, this message translates to: /// **'Score'** String get competitiveness_score; /// No description provided for @competitiveness_previous_edition. /// /// In en, this message translates to: /// **'vs. Previous Edition'** String get competitiveness_previous_edition; /// No description provided for @competitiveness_first_globally. /// /// In en, this message translates to: /// **'First Globally'** String get competitiveness_first_globally; /// No description provided for @competitiveness_first_in_GCC. /// /// In en, this message translates to: /// **'First in GCC'** String get competitiveness_first_in_GCC; /// No description provided for @competitiveness_first_in_arab_countries. /// /// In en, this message translates to: /// **'First in Arab Countries'** String get competitiveness_first_in_arab_countries; /// No description provided for @competitiveness_multi_countries. /// /// In en, this message translates to: /// **'MULTIPLE COUNTRIES'** String get competitiveness_multi_countries; /// No description provided for @competitiveness_uae_bilateral_trade. /// /// In en, this message translates to: /// **'UAE Bilateral Trade'** String get competitiveness_uae_bilateral_trade; /// No description provided for @competitiveness_total. /// /// In en, this message translates to: /// **'Total '** String get competitiveness_total; /// No description provided for @country_profile. /// /// In en, this message translates to: /// **'Country Profile'** String get country_profile; /// No description provided for @agree_terms_conditions. /// /// In en, this message translates to: /// **'Please agree to terms and conditions.'** String get agree_terms_conditions; /// No description provided for @retry. /// /// In en, this message translates to: /// **'Retry'** String get retry; /// No description provided for @select. /// /// In en, this message translates to: /// **'Select'** String get select; /// No description provided for @email_exists. /// /// In en, this message translates to: /// **'Email exists'** String get email_exists; /// No description provided for @email_exists_msg. /// /// In en, this message translates to: /// **'Email ID already exists. Please use a different email.'** String get email_exists_msg; /// No description provided for @email_invalid. /// /// In en, this message translates to: /// **'The email is invalid or already in use.'** String get email_invalid; /// No description provided for @required. /// /// In en, this message translates to: /// **'Required'** String get required; /// No description provided for @only40charac. /// /// In en, this message translates to: /// **'Must not exceed 40 characters'** String get only40charac; /// No description provided for @invalid_characters. /// /// In en, this message translates to: /// **'Invalid Characters'** String get invalid_characters; /// No description provided for @invalid_email. /// /// In en, this message translates to: /// **'Invalid Email'** String get invalid_email; /// No description provided for @password_invalid. /// /// In en, this message translates to: /// **'Password contains invalid characters'** String get password_invalid; /// No description provided for @password_match. /// /// In en, this message translates to: /// **'Passwords do not match'** String get password_match; /// No description provided for @only8charac. /// /// In en, this message translates to: /// **'Password must be at least 8characters'** String get only8charac; /// No description provided for @manage_user. /// /// In en, this message translates to: /// **'Manage User'** String get manage_user; /// No description provided for @user_name. /// /// In en, this message translates to: /// **'User Name'** String get user_name; /// No description provided for @reg_date. /// /// In en, this message translates to: /// **'Registration Date'** String get reg_date; /// No description provided for @status. /// /// In en, this message translates to: /// **'Status'** String get status; /// No description provided for @denied. /// /// In en, this message translates to: /// **'Denied'** String get denied; /// No description provided for @pending. /// /// In en, this message translates to: /// **'Pending'** String get pending; /// No description provided for @approved. /// /// In en, this message translates to: /// **'Approved'** String get approved; /// No description provided for @approve_msg. /// /// In en, this message translates to: /// **'Are you sure you want to change the status to '** String get approve_msg; /// No description provided for @yes. /// /// In en, this message translates to: /// **'Yes'** String get yes; /// No description provided for @no. /// /// In en, this message translates to: /// **'No'** String get no; /// No description provided for @no_result_found. /// /// In en, this message translates to: /// **'No results found'** String get no_result_found; /// No description provided for @search. /// /// In en, this message translates to: /// **'Search'** String get search; /// No description provided for @status_success. /// /// In en, this message translates to: /// **'Status updated successfully'** String get status_success; /// No description provided for @profile_updated_successfully. /// /// In en, this message translates to: /// **'Profile updated successfully'** String get profile_updated_successfully; /// No description provided for @create_new_password. /// /// In en, this message translates to: /// **'Create New Password'** String get create_new_password; /// No description provided for @different_password. /// /// In en, this message translates to: /// **'Your New Password Must Be Different form Previously Used Password'** String get different_password; /// No description provided for @old_password. /// /// In en, this message translates to: /// **'Old Password'** String get old_password; /// No description provided for @enter_new_password. /// /// In en, this message translates to: /// **'Enter new password'** String get enter_new_password; /// No description provided for @confirm_new_password. /// /// In en, this message translates to: /// **'Confirm new password'** String get confirm_new_password; /// No description provided for @password_changed_successfully. /// /// In en, this message translates to: /// **'Password Changed Successfully'** String get password_changed_successfully; /// No description provided for @enter_old_password. /// /// In en, this message translates to: /// **'Enter old Password'** String get enter_old_password; /// No description provided for @your_old_password_incorrect. /// /// In en, this message translates to: /// **'Your old password is incorrect.'** String get your_old_password_incorrect; /// No description provided for @failed_to_update_password. /// /// In en, this message translates to: /// **''** String get failed_to_update_password; /// No description provided for @password_update_successfully. /// /// In en, this message translates to: /// **'Password updated successfully.'** String get password_update_successfully; /// No description provided for @new_password_not_same_as_old. /// /// In en, this message translates to: /// **'New password must not be the same as the old password'** String get new_password_not_same_as_old; /// No description provided for @password_between_8_to_40. /// /// In en, this message translates to: /// **'Password must be between 8 and 40 characters'** String get password_between_8_to_40; /// No description provided for @new_password_required. /// /// In en, this message translates to: /// **'New password is required'** String get new_password_required; /// No description provided for @old_password_is_required. /// /// In en, this message translates to: /// **'Old password is required'** String get old_password_is_required; /// No description provided for @confirm_password_is_required. /// /// In en, this message translates to: /// **'Confirm password is required'** String get confirm_password_is_required; /// No description provided for @kpiCards. /// /// In en, this message translates to: /// **'View interactive KPI cards and graphs to explore data trends and compare key metrics visually.'** String get kpiCards; /// No description provided for @home_topic. /// /// In en, this message translates to: /// **'Tap on any category (e.g., Economy, Social, Environment) to explore detailed KPIs, visualizations, and data insights.'** String get home_topic; /// No description provided for @economy. /// /// In en, this message translates to: /// **'Access detailed statistics and drill-down pages for KPIs in the Economy category to uncover key trends and metrics.'** String get economy; /// No description provided for @bookMark. /// /// In en, this message translates to: /// **'Bookmark important KPIs or datasets for quick and easy access anytime through the Bookmarks section.'** String get bookMark; /// No description provided for @toggle. /// /// In en, this message translates to: /// **'Switch between English and Arabic using the language toggle at the top-right corner for a bilingual experience.'** String get toggle; /// No description provided for @tour_navBar. /// /// In en, this message translates to: /// **'Access dedicated pages and additional features by selecting options from the Main Menu.'** String get tour_navBar; /// No description provided for @mainMenu. /// /// In en, this message translates to: /// **'Use the navigation bar to quickly access Profile, Feedback, User Guide, Notifications, and other key app features.'** String get mainMenu; /// No description provided for @uae_pass_login_error. /// /// In en, this message translates to: /// **'Something went wrong during the login, please try again later!'** String get uae_pass_login_error; /// No description provided for @uae_pass_user_cancelled. /// /// In en, this message translates to: /// **'User cancelled the login'** String get uae_pass_user_cancelled; /// No description provided for @google_sign_in. /// /// In en, this message translates to: /// **'Sign in with Google'** String get google_sign_in; /// No description provided for @apple_sign_in. /// /// In en, this message translates to: /// **'Sign in with Apple'** String get apple_sign_in; /// No description provided for @uaepass_sign_in. /// /// In en, this message translates to: /// **'Sign in with UAE PASS'** String get uaepass_sign_in; /// No description provided for @or. /// /// In en, this message translates to: /// **'OR'** String get or; /// No description provided for @fcsc_profile_linking_title. /// /// In en, this message translates to: /// **'UAE PASS - FCSC\nProfile Linking'** String get fcsc_profile_linking_title; /// No description provided for @fcsc_profile_linking_question. /// /// In en, this message translates to: /// **'Do you have an online account with\nFCSC?'** String get fcsc_profile_linking_question; /// No description provided for @fcsc_profile_linking_yes. /// /// In en, this message translates to: /// **'Yes *'** String get fcsc_profile_linking_yes; /// No description provided for @fcsc_profile_linking_no. /// /// In en, this message translates to: /// **'No **'** String get fcsc_profile_linking_no; /// No description provided for @fcsc_profile_linking_legend_yes. /// /// In en, this message translates to: /// **'* Your UAE PASS account will be linked to your existing FCSC profile'** String get fcsc_profile_linking_legend_yes; /// No description provided for @fcsc_profile_linking_legend_no. /// /// In en, this message translates to: /// **'** Your UAE Stat Mobile App profile will be established based on the UAE PASS account'** String get fcsc_profile_linking_legend_no; /// No description provided for @fcsc_profile_linking_note_label. /// /// In en, this message translates to: /// **'Note:'** String get fcsc_profile_linking_note_label; /// No description provided for @fcsc_profile_linking_note_body. /// /// In en, this message translates to: /// **'This is a one time process; your future logins through UAE PASS will be seamless.'** String get fcsc_profile_linking_note_body; } class _AppLocalizationsDelegate extends LocalizationsDelegate { const _AppLocalizationsDelegate(); @override Future load(Locale locale) { return SynchronousFuture(lookupAppLocalizations(locale)); } @override bool isSupported(Locale locale) => ['ar', 'en'].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 'ar': return AppLocalizationsAr(); case 'en': return AppLocalizationsEn(); } 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.'); }