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_hi.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('en'), Locale('hi') ]; /// No description provided for @appTitle. /// /// In en, this message translates to: /// **'AuthSec Flutter'** String get appTitle; /// No description provided for @language. /// /// In en, this message translates to: /// **'Language'** String get language; /// No description provided for @english. /// /// In en, this message translates to: /// **'English'** String get english; /// No description provided for @hindi. /// /// In en, this message translates to: /// **'Hindi'** String get hindi; /// No description provided for @helloUser. /// /// In en, this message translates to: /// **'Hello, {name}'** String helloUser(String name); /// No description provided for @user. /// /// In en, this message translates to: /// **'User'** String get user; /// No description provided for @logout. /// /// In en, this message translates to: /// **'Logout'** String get logout; /// 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 @retry. /// /// In en, this message translates to: /// **'Retry'** String get retry; /// No description provided for @refresh. /// /// In en, this message translates to: /// **'Refresh'** String get refresh; /// No description provided for @addNew. /// /// In en, this message translates to: /// **'Add new'** String get addNew; /// No description provided for @searchEntity. /// /// In en, this message translates to: /// **'Search {entity}...'** String searchEntity(String entity); /// No description provided for @loadingEntity. /// /// In en, this message translates to: /// **'Loading {entity}...'** String loadingEntity(String entity); /// No description provided for @noEntityFound. /// /// In en, this message translates to: /// **'No {entity} found'** String noEntityFound(String entity); /// No description provided for @addEntity. /// /// In en, this message translates to: /// **'Add {entity}'** String addEntity(String entity); /// No description provided for @createEntity. /// /// In en, this message translates to: /// **'Create {entity}'** String createEntity(String entity); /// No description provided for @updateEntity. /// /// In en, this message translates to: /// **'Update {entity}'** String updateEntity(String entity); /// No description provided for @entityRequired. /// /// In en, this message translates to: /// **'{field} is required'** String entityRequired(String field); /// No description provided for @errorLoadingData. /// /// In en, this message translates to: /// **'Error loading data'** String get errorLoadingData; /// No description provided for @somethingWentWrong. /// /// In en, this message translates to: /// **'Something went wrong'** String get somethingWentWrong; /// No description provided for @adjustSearchTerms. /// /// In en, this message translates to: /// **'Try adjusting your search terms'** String get adjustSearchTerms; /// No description provided for @startByAdding. /// /// In en, this message translates to: /// **'Start by adding your first {entity}'** String startByAdding(String entity); /// No description provided for @unknown. /// /// In en, this message translates to: /// **'Unknown'** String get unknown; /// No description provided for @scanBarcode. /// /// In en, this message translates to: /// **'Scan barcode'** String get scanBarcode; /// No description provided for @enterOrScanBarcode. /// /// In en, this message translates to: /// **'Enter or scan barcode'** String get enterOrScanBarcode; /// No description provided for @addAudio. /// /// In en, this message translates to: /// **'Add audio'** String get addAudio; /// No description provided for @selectAudioFile. /// /// In en, this message translates to: /// **'Select audio file'** String get selectAudioFile; /// No description provided for @pickColor. /// /// In en, this message translates to: /// **'Pick a color'** String get pickColor; /// No description provided for @systemParameters. /// /// In en, this message translates to: /// **'System Parameters'** String get systemParameters; /// No description provided for @editSystemParameters. /// /// In en, this message translates to: /// **'Edit System Parameters'** String get editSystemParameters; /// No description provided for @goBack. /// /// In en, this message translates to: /// **'Go back'** String get goBack; /// No description provided for @profile. /// /// In en, this message translates to: /// **'Profile'** String get profile; /// No description provided for @editProfile. /// /// In en, this message translates to: /// **'Edit profile'** String get editProfile; /// No description provided for @accountUpdate. /// /// In en, this message translates to: /// **'Account update'** String get accountUpdate; /// No description provided for @changePassword. /// /// In en, this message translates to: /// **'Change password'** String get changePassword; /// No description provided for @confirmLogout. /// /// In en, this message translates to: /// **'Confirm logout'** String get confirmLogout; /// No description provided for @confirmLogoutBody. /// /// In en, this message translates to: /// **'Are you sure you want to log out?'** String get confirmLogoutBody; /// No description provided for @logoutAction. /// /// In en, this message translates to: /// **'Log out'** String get logoutAction; /// No description provided for @passwordsDoNotMatch. /// /// In en, this message translates to: /// **'Passwords do not match'** String get passwordsDoNotMatch; /// No description provided for @requiredField. /// /// In en, this message translates to: /// **'This field is required'** String get requiredField; /// No description provided for @email. /// /// In en, this message translates to: /// **'Email'** String get email; /// No description provided for @password. /// /// In en, this message translates to: /// **'Password'** String get password; /// No description provided for @signIn. /// /// In en, this message translates to: /// **'Sign in'** String get signIn; /// No description provided for @signUp. /// /// In en, this message translates to: /// **'Sign up'** String get signUp; /// No description provided for @forgotPassword. /// /// In en, this message translates to: /// **'Forgot password?'** String get forgotPassword; /// No description provided for @loading. /// /// In en, this message translates to: /// **'Loading...'** String get loading; /// No description provided for @save. /// /// In en, this message translates to: /// **'Save'** String get save; /// No description provided for @delete. /// /// In en, this message translates to: /// **'Delete'** String get delete; /// No description provided for @edit. /// /// In en, this message translates to: /// **'Edit'** String get edit; /// No description provided for @close. /// /// In en, this message translates to: /// **'Close'** String get close; /// No description provided for @welcomeBack. /// /// In en, this message translates to: /// **'Welcome back!'** String get welcomeBack; /// No description provided for @signInToContinue. /// /// In en, this message translates to: /// **'Sign in to continue to your account'** String get signInToContinue; /// No description provided for @emailAddress. /// /// In en, this message translates to: /// **'Email address'** String get emailAddress; /// No description provided for @enterYourEmail. /// /// In en, this message translates to: /// **'Enter your email'** String get enterYourEmail; /// No description provided for @emailRequired. /// /// In en, this message translates to: /// **'Email is required'** String get emailRequired; /// No description provided for @validEmail. /// /// In en, this message translates to: /// **'Please enter a valid email'** String get validEmail; /// No description provided for @enterYourPassword. /// /// In en, this message translates to: /// **'Enter your password'** String get enterYourPassword; /// No description provided for @passwordRequired. /// /// In en, this message translates to: /// **'Password is required'** String get passwordRequired; /// No description provided for @passwordMinLength. /// /// In en, this message translates to: /// **'Password must be at least 6 characters'** String get passwordMinLength; /// No description provided for @noAccount. /// /// In en, this message translates to: /// **'Don\'t have an account?'** String get noAccount; /// No description provided for @orContinueWith. /// /// In en, this message translates to: /// **'Or continue with'** String get orContinueWith; /// No description provided for @verifyOtp. /// /// In en, this message translates to: /// **'Verify OTP'** String get verifyOtp; /// No description provided for @otpSentTo. /// /// In en, this message translates to: /// **'Enter the 6-digit code sent to'** String get otpSentTo; /// No description provided for @yourEmail. /// /// In en, this message translates to: /// **'your email'** String get yourEmail; /// No description provided for @enterOtp. /// /// In en, this message translates to: /// **'Enter 6-digit OTP'** String get enterOtp; /// No description provided for @didNotReceiveCode. /// /// In en, this message translates to: /// **'Didn\'t receive code?'** String get didNotReceiveCode; /// No description provided for @resendIn. /// /// In en, this message translates to: /// **'Resend in {seconds}s'** String resendIn(int seconds); /// No description provided for @resend. /// /// In en, this message translates to: /// **'Resend'** String get resend; /// No description provided for @dashboard. /// /// In en, this message translates to: /// **'Dashboard'** String get dashboard; /// No description provided for @settings. /// /// In en, this message translates to: /// **'Settings'** String get settings; /// No description provided for @security. /// /// In en, this message translates to: /// **'Security'** String get security; /// No description provided for @reports. /// /// In en, this message translates to: /// **'Reports'** String get reports; /// No description provided for @manageAccount. /// /// In en, this message translates to: /// **'Manage your account'** String get manageAccount; /// No description provided for @configureSystemSettings. /// /// In en, this message translates to: /// **'Configure system settings'** String get configureSystemSettings; /// No description provided for @updateYourPassword. /// /// In en, this message translates to: /// **'Update your password'** String get updateYourPassword; /// No description provided for @getOtp. /// /// In en, this message translates to: /// **'Get OTP'** String get getOtp; /// No description provided for @otpEmailPrompt. /// /// In en, this message translates to: /// **'Enter your email to receive a one-time password'** String get otpEmailPrompt; /// No description provided for @enterEmailAddress. /// /// In en, this message translates to: /// **'Enter your email address'** String get enterEmailAddress; /// No description provided for @sendOtp. /// /// In en, this message translates to: /// **'Send OTP'** String get sendOtp; /// No description provided for @sendingOtp. /// /// In en, this message translates to: /// **'Sending OTP...'** String get sendingOtp; /// No description provided for @alreadyHaveAccount. /// /// In en, this message translates to: /// **'Already have an account?'** String get alreadyHaveAccount; /// No description provided for @backToLogin. /// /// In en, this message translates to: /// **'Back to login'** String get backToLogin; /// No description provided for @emailLooksGood. /// /// In en, this message translates to: /// **'Email looks good'** String get emailLooksGood; /// No description provided for @invalidEmailAddress. /// /// In en, this message translates to: /// **'Invalid email address'** String get invalidEmailAddress; /// No description provided for @noDataAvailable. /// /// In en, this message translates to: /// **'No data available'** String get noDataAvailable; /// No description provided for @noResults. /// /// In en, this message translates to: /// **'No results'** String get noResults; /// No description provided for @clearBtn. /// /// In en, this message translates to: /// **'Clear'** String get clearBtn; /// No description provided for @doneBtn. /// /// In en, this message translates to: /// **'Done'** String get doneBtn; /// No description provided for @addFiles. /// /// In en, this message translates to: /// **'Add Files'** String get addFiles; /// No description provided for @addImage. /// /// In en, this message translates to: /// **'Add Image'** String get addImage; /// No description provided for @addVideo. /// /// In en, this message translates to: /// **'Add Video'** String get addVideo; /// No description provided for @insertBtn. /// /// In en, this message translates to: /// **'Insert'** String get insertBtn; /// No description provided for @noDataFound. /// /// In en, this message translates to: /// **'No data found'** String get noDataFound; /// No description provided for @sysConfigTitle. /// /// In en, this message translates to: /// **'System Configuration'** String get sysConfigTitle; /// No description provided for @sysConfigSubtitle. /// /// In en, this message translates to: /// **'Configure system-wide parameters and settings'** String get sysConfigSubtitle; /// No description provided for @generatingTheme. /// /// In en, this message translates to: /// **'Generating dynamic theme...'** String get generatingTheme; /// No description provided for @themeApplied. /// /// In en, this message translates to: /// **'Dynamic theme applied! Colors extracted from logo.'** String get themeApplied; /// No description provided for @themeImmediateNote. /// /// In en, this message translates to: /// **'Theme is applied immediately! Click \"Upload Logo\" to save the logo permanently to the database. The dynamic theme will work even if upload fails.'** String get themeImmediateNote; /// No description provided for @uploadNewLogo. /// /// In en, this message translates to: /// **'Upload New Logo'** String get uploadNewLogo; /// No description provided for @removeLogo. /// /// In en, this message translates to: /// **'Remove Logo'** String get removeLogo; /// No description provided for @logoAlreadyUploaded. /// /// In en, this message translates to: /// **'Company logo is already uploaded and saved in the system. You can upload a new one or remove the existing logo.'** String get logoAlreadyUploaded; /// No description provided for @manualOverride. /// /// In en, this message translates to: /// **'Enable Manual Override'** String get manualOverride; /// No description provided for @colorPrimary. /// /// In en, this message translates to: /// **'Primary'** String get colorPrimary; /// No description provided for @colorSecondary. /// /// In en, this message translates to: /// **'Secondary'** String get colorSecondary; /// No description provided for @colorTertiary. /// /// In en, this message translates to: /// **'Tertiary'** String get colorTertiary; /// No description provided for @resetLogoColors. /// /// In en, this message translates to: /// **'Reset to Logo Colors'** String get resetLogoColors; /// No description provided for @resetDefault. /// /// In en, this message translates to: /// **'Reset to Default'** String get resetDefault; /// No description provided for @userRegistration. /// /// In en, this message translates to: /// **'User Registration'** String get userRegistration; /// No description provided for @allowUserRegistration. /// /// In en, this message translates to: /// **'Allow new users to register accounts'** String get allowUserRegistration; /// No description provided for @themeGenerated. /// /// In en, this message translates to: /// **'Dynamic Theme Generated'** String get themeGenerated; /// No description provided for @resetThemeTooltip. /// /// In en, this message translates to: /// **'Reset to Default Theme'** String get resetThemeTooltip; /// No description provided for @colorPalette. /// /// In en, this message translates to: /// **'Color Palette'** String get colorPalette; /// No description provided for @colorAccent1. /// /// In en, this message translates to: /// **'Accent 1'** String get colorAccent1; /// No description provided for @colorAccent2. /// /// In en, this message translates to: /// **'Accent 2'** String get colorAccent2; /// No description provided for @colorN. /// /// In en, this message translates to: /// **'Color {n}'** String colorN(String n); /// No description provided for @themeInfo. /// /// In en, this message translates to: /// **'Theme Information'** String get themeInfo; /// No description provided for @totalColors. /// /// In en, this message translates to: /// **'Total Colors'** String get totalColors; /// No description provided for @themeDescription. /// /// In en, this message translates to: /// **'Description'** String get themeDescription; /// No description provided for @warmColors. /// /// In en, this message translates to: /// **'Warm Colors'** String get warmColors; /// No description provided for @coolColors. /// /// In en, this message translates to: /// **'Cool Colors'** String get coolColors; /// No description provided for @neutralColors. /// /// In en, this message translates to: /// **'Neutral Colors'** String get neutralColors; /// 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 @primaryButton. /// /// In en, this message translates to: /// **'Primary Button'** String get primaryButton; /// No description provided for @secondaryButton. /// /// In en, this message translates to: /// **'Secondary Button'** String get secondaryButton; /// No description provided for @uploadLogo. /// /// In en, this message translates to: /// **'Upload Logo'** String get uploadLogo; /// No description provided for @clearLogo. /// /// In en, this message translates to: /// **'Clear Logo'** String get clearLogo; /// No description provided for @saveConfiguration. /// /// In en, this message translates to: /// **'Save Configuration'** String get saveConfiguration; /// No description provided for @drawerHome. /// /// In en, this message translates to: /// **'Home'** String get drawerHome; /// No description provided for @drawerUsers. /// /// In en, this message translates to: /// **'Users'** String get drawerUsers; /// No description provided for @drawerRoles. /// /// In en, this message translates to: /// **'Roles'** String get drawerRoles; /// No description provided for @drawerDepartments. /// /// In en, this message translates to: /// **'Departments'** String get drawerDepartments; /// No description provided for @drawerPositions. /// /// In en, this message translates to: /// **'Positions'** String get drawerPositions; /// No description provided for @drawerCharges. /// /// In en, this message translates to: /// **'Charges'** String get drawerCharges; /// No description provided for @drawerWeeks. /// /// In en, this message translates to: /// **'Weeks'** String get drawerWeeks; /// No description provided for @drawerShifts. /// /// In en, this message translates to: /// **'Shifts'** String get drawerShifts; /// No description provided for @drawerBilling. /// /// In en, this message translates to: /// **'Billing'** String get drawerBilling; /// No description provided for @drawerEdi. /// /// In en, this message translates to: /// **'EDI Settings'** String get drawerEdi; /// No description provided for @drawerCompany. /// /// In en, this message translates to: /// **'Company'** String get drawerCompany; /// No description provided for @drawerLogo. /// /// In en, this message translates to: /// **'Logo'** String get drawerLogo; /// No description provided for @registerCompany. /// /// In en, this message translates to: /// **'Register Company'** String get registerCompany; /// No description provided for @accCompanyName. /// /// In en, this message translates to: /// **'Company Name'** String get accCompanyName; /// No description provided for @accCompanyHint. /// /// In en, this message translates to: /// **'Enter company name'** String get accCompanyHint; /// No description provided for @accWorkspace. /// /// In en, this message translates to: /// **'Workspace'** String get accWorkspace; /// No description provided for @accWorkspaceHint. /// /// In en, this message translates to: /// **'Enter workspace'** String get accWorkspaceHint; /// No description provided for @accGst. /// /// In en, this message translates to: /// **'GST Number'** String get accGst; /// No description provided for @accGstHint. /// /// In en, this message translates to: /// **'Enter GST number'** String get accGstHint; /// No description provided for @accMobile. /// /// In en, this message translates to: /// **'Mobile'** String get accMobile; /// No description provided for @accMobileHint. /// /// In en, this message translates to: /// **'Enter mobile number'** String get accMobileHint; /// No description provided for @accEmailReadonly. /// /// In en, this message translates to: /// **'Email (read-only)'** String get accEmailReadonly; /// No description provided for @accPan. /// /// In en, this message translates to: /// **'PAN Card'** String get accPan; /// No description provided for @accPanHint. /// /// In en, this message translates to: /// **'Enter PAN'** String get accPanHint; /// No description provided for @accWorking. /// /// In en, this message translates to: /// **'Working'** String get accWorking; /// No description provided for @accWorkingHint. /// /// In en, this message translates to: /// **'Working status'** String get accWorkingHint; /// No description provided for @requiredVal. /// /// In en, this message translates to: /// **'Required'** String get requiredVal; /// No description provided for @nActive. /// /// In en, this message translates to: /// **'Active'** String get nActive; /// No description provided for @saveChanges. /// /// In en, this message translates to: /// **'Save Changes'** String get saveChanges; /// No description provided for @selectOption. /// /// In en, this message translates to: /// **'Select an option'** String get selectOption; /// No description provided for @removeBtn. /// /// In en, this message translates to: /// **'Remove'** String get removeBtn; /// No description provided for @ohSnap. /// /// In en, this message translates to: /// **'Oh Snap!'** String get ohSnap; /// No description provided for @alertTitle. /// /// In en, this message translates to: /// **'Alert'** String get alertTitle; /// No description provided for @successTitle. /// /// In en, this message translates to: /// **'Success'** String get successTitle; } class _AppLocalizationsDelegate extends LocalizationsDelegate { const _AppLocalizationsDelegate(); @override Future load(Locale locale) { return SynchronousFuture(lookupAppLocalizations(locale)); } @override bool isSupported(Locale locale) => ['en', 'hi'].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 'hi': return AppLocalizationsHi(); } 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.'); }