This commit is contained in:
Deep Koluguri 2026-04-06 00:40:01 -04:00
parent 51e9c72464
commit 6e19f57e27
5 changed files with 1 additions and 938 deletions

View File

@ -2,5 +2,4 @@ arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
output-class: AppLocalizations
synthetic-package: false
output-dir: lib/l10n

View File

@ -1,525 +0,0 @@
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, youll need to edit this
/// file.
///
/// First, open your projects ios/Runner.xcworkspace Xcode workspace file.
/// Then, in the Project Navigator, open the Info.plist file under the Runner
/// projects 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('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;
}
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', '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.'
);
}

View File

@ -1,206 +0,0 @@
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for English (`en`).
class AppLocalizationsEn extends AppLocalizations {
AppLocalizationsEn([String locale = 'en']) : super(locale);
@override
String get appTitle => 'LuckyChit';
@override
String get settingsTitle => 'Settings';
@override
String get sectionAppearance => 'Appearance';
@override
String get sectionLanguage => 'Language';
@override
String get sectionAccount => 'Account';
@override
String get sectionPaymentSettings => 'Payment Settings';
@override
String get sectionNotifications => 'Notifications';
@override
String get sectionAbout => 'About';
@override
String get languageTitle => 'App language';
@override
String get languageSubtitle => 'English or Telugu';
@override
String get languageEnglish => 'English';
@override
String get languageTelugu => 'Telugu (తెలుగు)';
@override
String get chooseLanguageTitle => 'Choose language';
@override
String get themeTitle => 'Theme';
@override
String get themeLight => 'Light';
@override
String get themeDark => 'Dark';
@override
String get themeSystem => 'System default';
@override
String get chooseThemeTitle => 'Choose theme';
@override
String get darkModeTitle => 'Dark mode';
@override
String get darkModeSubtitle => 'Override system settings';
@override
String get changePasswordTitle => 'Change password';
@override
String get changePasswordSubtitle => 'Update your password';
@override
String get pushNotificationsTitle => 'Push notifications';
@override
String get pushNotificationsSubtitle => 'Receive push notifications';
@override
String get paymentRemindersTitle => 'Payment reminders';
@override
String get paymentRemindersSubtitle => 'Reminders for upcoming payments';
@override
String get drawNotificationsTitle => 'Draw notifications';
@override
String get drawNotificationsSubtitle => 'Alerts for lottery draws';
@override
String get upiIdTitle => 'UPI ID';
@override
String get loading => 'Loading…';
@override
String get active => 'Active';
@override
String get notConfigured => 'Not configured';
@override
String get configureBackend => 'Configure in backend/.env';
@override
String get copyUpiIdTooltip => 'Copy UPI ID';
@override
String get upiCopiedClipboard => 'UPI ID copied to clipboard';
@override
String get paymentStatisticsTitle => 'Payment statistics';
@override
String get paymentStatisticsSubtitle => 'View payment insights';
@override
String get transactionFeesTitle => 'Transaction fees';
@override
String get transactionFeesSubtitle => '0% fees • Save lakhs per year!';
@override
String get free => 'FREE';
@override
String get appVersionTitle => 'App version';
@override
String get privacyPolicyTitle => 'Privacy policy';
@override
String get termsOfServiceTitle => 'Terms of service';
@override
String get logout => 'Logout';
@override
String get logoutConfirmTitle => 'Logout';
@override
String get logoutConfirmMessage => 'Are you sure you want to logout?';
@override
String get cancel => 'Cancel';
@override
String get close => 'Close';
@override
String get copied => 'Copied!';
@override
String get profileComingSoon => 'Profile page coming soon';
@override
String get changePasswordComingSoon => 'Change password feature coming soon';
@override
String get notificationComingSoon => 'Notification settings coming soon';
@override
String get paymentStatsComingSoon => 'Payment statistics coming soon';
@override
String get privacyComingSoon => 'Privacy policy page coming soon';
@override
String get termsComingSoon => 'Terms of service page coming soon';
@override
String get loggedOutSuccess => 'Logged out successfully';
@override
String get upiPaymentSettingsTitle => 'UPI payment settings';
@override
String get currentUpiId => 'Current UPI ID';
@override
String get upiNotConfiguredMessage => 'UPI ID not configured. Update backend/.env file.';
@override
String get howToUpdateUpi => 'How to update UPI ID';
@override
String get stepOpenEnv => 'Open backend/.env file';
@override
String get stepUpdatePhonepe => 'Update PHONEPE_UPI_ID=your_upi@paytm';
@override
String get stepRestartBackend => 'Restart backend server';
@override
String get stepRefreshScreen => 'Refresh this screen';
@override
String get proTipTitle => 'Pro tip';
@override
String get proTipBody => 'Members can pay using ANY UPI app (PhonePe, GPay, Paytm) directly to your personal UPI ID with 0% transaction fees!';
}

View File

@ -1,206 +0,0 @@
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for Telugu (`te`).
class AppLocalizationsTe extends AppLocalizations {
AppLocalizationsTe([String locale = 'te']) : super(locale);
@override
String get appTitle => 'లక్కీచిట్';
@override
String get settingsTitle => 'సెట్టింగ్స్';
@override
String get sectionAppearance => 'రూపం';
@override
String get sectionLanguage => 'భాష';
@override
String get sectionAccount => 'ఖాతా';
@override
String get sectionPaymentSettings => 'చెల్లింపు సెట్టింగ్స్';
@override
String get sectionNotifications => 'నోటిఫికేషన్లు';
@override
String get sectionAbout => 'గురించి';
@override
String get languageTitle => 'యాప్ భాష';
@override
String get languageSubtitle => 'ఇంగ్లీషు లేదా తెలుగు';
@override
String get languageEnglish => 'ఇంగ్లీషు';
@override
String get languageTelugu => 'తెలుగు';
@override
String get chooseLanguageTitle => 'భాష ఎంచుకోండి';
@override
String get themeTitle => 'థీమ్';
@override
String get themeLight => 'లైట్';
@override
String get themeDark => 'డార్క్';
@override
String get themeSystem => 'సిస్టమ్ డిఫాల్ట్';
@override
String get chooseThemeTitle => 'థీమ్ ఎంచుకోండి';
@override
String get darkModeTitle => 'డార్క్ మోడ్';
@override
String get darkModeSubtitle => 'సిస్టమ్ సెట్టింగ్స్‌ను ఓవర్‌రైడ్ చేయండి';
@override
String get changePasswordTitle => 'పాస్‌వర్డ్ మార్చండి';
@override
String get changePasswordSubtitle => 'మీ పాస్‌వర్డ్‌ను నవీకరించండి';
@override
String get pushNotificationsTitle => 'పుష్ నోటిఫికేషన్లు';
@override
String get pushNotificationsSubtitle => 'పుష్ నోటిఫికేషన్లు అందుకోండి';
@override
String get paymentRemindersTitle => 'చెల్లింపు రిమైండర్లు';
@override
String get paymentRemindersSubtitle => 'రాబోయే చెల్లింపుల కోసం రిమైండర్లు';
@override
String get drawNotificationsTitle => 'డ్రా నోటిఫికేషన్లు';
@override
String get drawNotificationsSubtitle => 'లాటరీ డ్రాల కోసం అలర్ట్‌లు';
@override
String get upiIdTitle => 'UPI ID';
@override
String get loading => 'లోడ్ అవుతోంది…';
@override
String get active => 'Active';
@override
String get notConfigured => 'కాన్ఫిగర్ చేయలేదు';
@override
String get configureBackend => 'backend/.env లో కాన్ఫిగర్ చేయండి';
@override
String get copyUpiIdTooltip => 'UPI ID కాపీ చేయండి';
@override
String get upiCopiedClipboard => 'UPI ID క్లిప్‌బోర్డ్‌కు కాపీ అయింది';
@override
String get paymentStatisticsTitle => 'చెల్లింపు గణాంకాలు';
@override
String get paymentStatisticsSubtitle => 'చెల్లింపు అంతర్దృష్టులను చూడండి';
@override
String get transactionFeesTitle => 'లావాదేవీ ఫీజులు';
@override
String get transactionFeesSubtitle => '0% ఫీజులు • సంవత్సరానికి లక్షలు ఆదా!';
@override
String get free => 'ఉచితం';
@override
String get appVersionTitle => 'యాప్ వెర్షన్';
@override
String get privacyPolicyTitle => 'గోప్యతా విధానం';
@override
String get termsOfServiceTitle => 'సేవా నిబంధనలు';
@override
String get logout => 'లాగ్ అవుట్';
@override
String get logoutConfirmTitle => 'లాగ్ అవుట్';
@override
String get logoutConfirmMessage => 'మీరు ఖచ్చితంగా లాగ్ అవుట్ కావాలనుకుంటున్నారా?';
@override
String get cancel => 'రద్దు';
@override
String get close => 'మూసివేయి';
@override
String get copied => 'కాపీ అయింది!';
@override
String get profileComingSoon => 'ప్రొఫైల్ పేజీ త్వరలో వస్తుంది';
@override
String get changePasswordComingSoon => 'పాస్‌వర్డ్ మార్పు ఫీచర్ త్వరలో వస్తుంది';
@override
String get notificationComingSoon => 'నోటిఫికేషన్ సెట్టింగ్స్ త్వరలో వస్తాయి';
@override
String get paymentStatsComingSoon => 'చెల్లింపు గణాంకాలు త్వరలో వస్తాయి';
@override
String get privacyComingSoon => 'గోప్యతా విధానం పేజీ త్వరలో వస్తుంది';
@override
String get termsComingSoon => 'సేవా నిబంధనల పేజీ త్వరలో వస్తుంది';
@override
String get loggedOutSuccess => 'విజయవంతంగా లాగ్ అవుట్ అయ్యారు';
@override
String get upiPaymentSettingsTitle => 'UPI చెల్లింపు సెట్టింగ్స్';
@override
String get currentUpiId => 'ప్రస్తుత UPI ID';
@override
String get upiNotConfiguredMessage => 'UPI ID కాన్ఫిగర్ చేయలేదు. backend/.env ఫైల్‌ను నవీకరించండి.';
@override
String get howToUpdateUpi => 'UPI ID ఎలా నవీకరించాలి';
@override
String get stepOpenEnv => 'backend/.env ఫైల్‌ను తెరవండి';
@override
String get stepUpdatePhonepe => 'PHONEPE_UPI_ID=your_upi@paytm ను నవీకరించండి';
@override
String get stepRestartBackend => 'బ్యాకెండ్ సర్వర్‌ను రీస్టార్ట్ చేయండి';
@override
String get stepRefreshScreen => 'ఈ స్క్రీన్‌ను రిఫ్రెష్ చేయండి';
@override
String get proTipTitle => 'ప్రో టిప్';
@override
String get proTipBody => 'సభ్యులు ఏ UPI యాప్‌తోనైనా (PhonePe, GPay, Paytm) మీ వ్యక్తిగత UPI IDకు నేరుగా 0% లావాదేవీ ఫీజుతో చెల్లించవచ్చు!';
}

View File

@ -111,6 +111,7 @@ dev_dependencies:
# The following section is specific to Flutter packages.
flutter:
generate: true
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in