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_te.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('te') ]; /// No description provided for @appTitle. /// /// In en, this message translates to: /// **'LuckyChit'** String get appTitle; /// No description provided for @settingsTitle. /// /// In en, this message translates to: /// **'Settings'** String get settingsTitle; /// No description provided for @sectionAppearance. /// /// In en, this message translates to: /// **'Appearance'** String get sectionAppearance; /// No description provided for @sectionLanguage. /// /// In en, this message translates to: /// **'Language'** String get sectionLanguage; /// No description provided for @sectionAccount. /// /// In en, this message translates to: /// **'Account'** String get sectionAccount; /// No description provided for @sectionPaymentSettings. /// /// In en, this message translates to: /// **'Payment Settings'** String get sectionPaymentSettings; /// No description provided for @sectionNotifications. /// /// In en, this message translates to: /// **'Notifications'** String get sectionNotifications; /// No description provided for @sectionAbout. /// /// In en, this message translates to: /// **'About'** String get sectionAbout; /// No description provided for @languageTitle. /// /// In en, this message translates to: /// **'App language'** String get languageTitle; /// No description provided for @languageSubtitle. /// /// In en, this message translates to: /// **'English or Telugu'** String get languageSubtitle; /// No description provided for @languageEnglish. /// /// In en, this message translates to: /// **'English'** String get languageEnglish; /// No description provided for @languageTelugu. /// /// In en, this message translates to: /// **'Telugu (తెలుగు)'** String get languageTelugu; /// No description provided for @chooseLanguageTitle. /// /// In en, this message translates to: /// **'Choose language'** String get chooseLanguageTitle; /// No description provided for @themeTitle. /// /// In en, this message translates to: /// **'Theme'** String get themeTitle; /// No description provided for @themeLight. /// /// In en, this message translates to: /// **'Light'** String get themeLight; /// No description provided for @themeDark. /// /// In en, this message translates to: /// **'Dark'** String get themeDark; /// No description provided for @themeSystem. /// /// In en, this message translates to: /// **'System default'** String get themeSystem; /// No description provided for @chooseThemeTitle. /// /// In en, this message translates to: /// **'Choose theme'** String get chooseThemeTitle; /// No description provided for @darkModeTitle. /// /// In en, this message translates to: /// **'Dark mode'** String get darkModeTitle; /// No description provided for @darkModeSubtitle. /// /// In en, this message translates to: /// **'Override system settings'** String get darkModeSubtitle; /// No description provided for @changePasswordTitle. /// /// In en, this message translates to: /// **'Change password'** String get changePasswordTitle; /// No description provided for @changePasswordSubtitle. /// /// In en, this message translates to: /// **'Update your password'** String get changePasswordSubtitle; /// No description provided for @pushNotificationsTitle. /// /// In en, this message translates to: /// **'Push notifications'** String get pushNotificationsTitle; /// No description provided for @pushNotificationsSubtitle. /// /// In en, this message translates to: /// **'Receive push notifications'** String get pushNotificationsSubtitle; /// No description provided for @paymentRemindersTitle. /// /// In en, this message translates to: /// **'Payment reminders'** String get paymentRemindersTitle; /// No description provided for @paymentRemindersSubtitle. /// /// In en, this message translates to: /// **'Reminders for upcoming payments'** String get paymentRemindersSubtitle; /// No description provided for @drawNotificationsTitle. /// /// In en, this message translates to: /// **'Draw notifications'** String get drawNotificationsTitle; /// No description provided for @drawNotificationsSubtitle. /// /// In en, this message translates to: /// **'Alerts for lottery draws'** String get drawNotificationsSubtitle; /// No description provided for @upiIdTitle. /// /// In en, this message translates to: /// **'UPI ID'** String get upiIdTitle; /// No description provided for @loading. /// /// In en, this message translates to: /// **'Loading…'** String get loading; /// No description provided for @active. /// /// In en, this message translates to: /// **'Active'** String get active; /// No description provided for @notConfigured. /// /// In en, this message translates to: /// **'Not configured'** String get notConfigured; /// No description provided for @configureBackend. /// /// In en, this message translates to: /// **'Configure in backend/.env'** String get configureBackend; /// No description provided for @copyUpiIdTooltip. /// /// In en, this message translates to: /// **'Copy UPI ID'** String get copyUpiIdTooltip; /// No description provided for @upiCopiedClipboard. /// /// In en, this message translates to: /// **'UPI ID copied to clipboard'** String get upiCopiedClipboard; /// No description provided for @paymentStatisticsTitle. /// /// In en, this message translates to: /// **'Payment statistics'** String get paymentStatisticsTitle; /// No description provided for @paymentStatisticsSubtitle. /// /// In en, this message translates to: /// **'View payment insights'** String get paymentStatisticsSubtitle; /// No description provided for @transactionFeesTitle. /// /// In en, this message translates to: /// **'Transaction fees'** String get transactionFeesTitle; /// No description provided for @transactionFeesSubtitle. /// /// In en, this message translates to: /// **'0% fees • Save lakhs per year!'** String get transactionFeesSubtitle; /// No description provided for @free. /// /// In en, this message translates to: /// **'FREE'** String get free; /// No description provided for @appVersionTitle. /// /// In en, this message translates to: /// **'App version'** String get appVersionTitle; /// No description provided for @privacyPolicyTitle. /// /// In en, this message translates to: /// **'Privacy policy'** String get privacyPolicyTitle; /// No description provided for @termsOfServiceTitle. /// /// In en, this message translates to: /// **'Terms of service'** String get termsOfServiceTitle; /// No description provided for @logout. /// /// In en, this message translates to: /// **'Logout'** String get logout; /// No description provided for @logoutConfirmTitle. /// /// In en, this message translates to: /// **'Logout'** String get logoutConfirmTitle; /// No description provided for @logoutConfirmMessage. /// /// In en, this message translates to: /// **'Are you sure you want to logout?'** String get logoutConfirmMessage; /// No description provided for @cancel. /// /// In en, this message translates to: /// **'Cancel'** String get cancel; /// No description provided for @close. /// /// In en, this message translates to: /// **'Close'** String get close; /// No description provided for @copied. /// /// In en, this message translates to: /// **'Copied!'** String get copied; /// No description provided for @profileComingSoon. /// /// In en, this message translates to: /// **'Profile page coming soon'** String get profileComingSoon; /// No description provided for @changePasswordComingSoon. /// /// In en, this message translates to: /// **'Change password feature coming soon'** String get changePasswordComingSoon; /// No description provided for @notificationComingSoon. /// /// In en, this message translates to: /// **'Notification settings coming soon'** String get notificationComingSoon; /// No description provided for @paymentStatsComingSoon. /// /// In en, this message translates to: /// **'Payment statistics coming soon'** String get paymentStatsComingSoon; /// No description provided for @privacyComingSoon. /// /// In en, this message translates to: /// **'Privacy policy page coming soon'** String get privacyComingSoon; /// No description provided for @termsComingSoon. /// /// In en, this message translates to: /// **'Terms of service page coming soon'** String get termsComingSoon; /// No description provided for @loggedOutSuccess. /// /// In en, this message translates to: /// **'Logged out successfully'** String get loggedOutSuccess; /// No description provided for @upiPaymentSettingsTitle. /// /// In en, this message translates to: /// **'UPI payment settings'** String get upiPaymentSettingsTitle; /// No description provided for @currentUpiId. /// /// In en, this message translates to: /// **'Current UPI ID'** String get currentUpiId; /// No description provided for @upiNotConfiguredMessage. /// /// In en, this message translates to: /// **'UPI ID not configured. Update backend/.env file.'** String get upiNotConfiguredMessage; /// No description provided for @howToUpdateUpi. /// /// In en, this message translates to: /// **'How to update UPI ID'** String get howToUpdateUpi; /// No description provided for @stepOpenEnv. /// /// In en, this message translates to: /// **'Open backend/.env file'** String get stepOpenEnv; /// No description provided for @stepUpdatePhonepe. /// /// In en, this message translates to: /// **'Update PHONEPE_UPI_ID=your_upi@paytm'** String get stepUpdatePhonepe; /// No description provided for @stepRestartBackend. /// /// In en, this message translates to: /// **'Restart backend server'** String get stepRestartBackend; /// No description provided for @stepRefreshScreen. /// /// In en, this message translates to: /// **'Refresh this screen'** String get stepRefreshScreen; /// No description provided for @proTipTitle. /// /// In en, this message translates to: /// **'Pro tip'** String get proTipTitle; /// No description provided for @proTipBody. /// /// In en, this message translates to: /// **'Members can pay using ANY UPI app (PhonePe, GPay, Paytm) directly to your personal UPI ID with 0% transaction fees!'** String get proTipBody; String get ok; String get save; String get retry; String get delete; String get userLabel; String get managerFallbackName; String get snackTitleError; String get snackTitleSuccess; String get operationFailedShort; String get failedLoadChitGroups; String get chitfundCreatedSuccess; String get failedCreateChitGroup; String get failedUpdateChitGroup; String get chitGroupDeletedSuccess; String get failedDeleteChitGroup; String get failedLoadGroupDetails; String get failedLoadGroupMembers; String get memberAddedSuccess; String get failedAddMember; String get memberRemovedSuccess; String get failedRemoveMember; String get memberStatusUpdatedSuccess; String get failedUpdateMemberStatus; String get failedLoadPayments; String get paymentRecordedSuccess; String get failedRecordPayment; String get failedLoadGroupStatistics; String get chitfundStartedSuccess; String get failedStartChitGroup; String get failedLoadMonthlyDraws; String get failedCreateMonthlyDraw; String get failedLoadDrawStatistics; String get failedLoadFinancialData; String get signupFailedTitle; String get signupFailedGeneric; String get loginFailedTitle; String get loginFailedGeneric; String get passwordChangedSuccess; String get failedChangePassword; String get stateSomethingWentWrong; String get emptyNoGroupsTitle; String get emptyNoGroupsMessage; String get emptyNoGroupsAction; String get emptyNoMembersTitle; String get emptyNoMembersMessage; String get emptyNoMembersAction; String get emptyNoPaymentsTitle; String get emptyNoPaymentsMessage; String get emptyNoPaymentsAction; String get emptyNoActivitiesTitle; String get emptyNoActivitiesMessage; String get emptyNoActivitiesAction; String get emptyNoResultsTitle; String get emptyNoResultsMessage; String get emptyNoResultsAction; String get emptyErrorTitle; String get emptyErrorMessage; String get emptyErrorAction; String get emptyNoInternetTitle; String get emptyNoInternetMessage; String get emptyNoInternetAction; String get dashboardTitle; String get notificationsTooltip; String get recordingsTooltip; String get testDrawTooltip; String get chitFundManagerRole; String get menuDashboard; String get menuMyChitfunds; String get menuMembers; String get menuPayments; String get menuLotteryDraws; String get menuReports; String get welcomeBackTitle; String get welcomeBackSubtitle; String get quickActionsTitle; String get qaCreateChitfundTitle; String get qaCreateChitfundSubtitle; String get qaImportChitfundTitle; String get qaImportChitfundSubtitle; String get qaViewAllChitfundsTitle; String get qaViewAllChitfundsSubtitle; String get qaManageMembersTitle; String get qaManageMembersSubtitle; String get qaPaymentRecordsTitle; String get qaPaymentRecordsSubtitle; String get sectionMyChitfunds; String get viewAll; String get noChitFundsYetShort; String get groupStatusActive; String get groupStatusForming; String get groupStatusCompleted; String get unnamedGroup; String get actionRecord; String get actionDraw; String get actionView; String get actionManageGroup; String get groupImportedMessage; String get groupImportedTitle; String get paymentsPageComingSoon; String get comingSoonTitle; String get pageMyChitfunds; String get createNewGroupMenu; String get importExistingGroupMenu; String get appDisplayName; String get authLoginTagline; String get authSignupScreenTitle; String get authSignupTagline; String get labelMobileNumber; String get labelMobileNumberRequired; String get labelPassword; String get labelPasswordRequired; String get labelFullNameRequired; String get labelEmailOptional; String get labelAddressOptional; String get labelEmergencyContactOptional; String get labelConfirmPasswordRequired; String get validatorEnterMobile; String get validatorMobileTenDigits; String get validatorMobileDigitsOnly; String get validatorEnterFullName; String get validatorValidEmail; String get validatorEmergencyTenDigits; String get validatorEmergencyDigitsOnly; String get validatorEnterPasswordAuth; String get validatorPasswordMinSixAuth; String get validatorConfirmPassword; String get validatorPasswordsMismatch; String get tooltipShowPassword; String get tooltipHidePassword; String get signInButton; String get createAccountButton; String get alreadyHaveAccount; String get loginLink; String get loginInvalidCredentials; String get signupSuccessWelcome; String get signupFailedGenericUi; String get featureComingSoonMessage; String memberWelcomeGreeting(String name); String get memberFallbackName; String get memberSubtitleEmpty; String get memberSubtitleHasGroups; String get navHome; String get navPayments; String get navNotifications; String get navProfile; String get memberEmptyChitTitle; String get memberEmptyChitBody; String get memberHowToStartTitle; String get memberHowToStartBody; String get unnamedGroupLong; String get labelTotalValue; String get labelDuration; String get monthsSuffix; String get labelInstallment; String get labelStatus; String get groupStatusPending; String get payNowButton; String get detailsButton; String get memberInfoNotFound; } class _AppLocalizationsDelegate extends LocalizationsDelegate { const _AppLocalizationsDelegate(); @override Future load(Locale locale) { return SynchronousFuture(lookupAppLocalizations(locale)); } @override bool isSupported(Locale locale) => ['en', 'te'].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 'te': return AppLocalizationsTe(); } 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.' ); }