AppLocalizations class abstract
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:
import 'gen_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:
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.
Constructors
- AppLocalizations(String locale)
Properties
- about → String
-
show about text.
no setter
- accept → String
-
show Accept text.
no setter
- accountNotDeleted → String
-
show account not deleted text.
no setter
- activeAlerts → String
-
show active alerts text.
no setter
- activityLog → String
-
show activity log text.
no setter
- addGenerator → String
-
show add generator text.
no setter
- addGeneratorsFromOnCuePlus → String
-
show add generators from onCuePlus text.
no setter
- additionalGeneratorDetails → String
-
show additional generator details text on generator details page.
no setter
- addNewUser → String
-
Location User: Add New User
no setter
- addressLineFirst → String
-
show address Line 1 text.
no setter
- agreeReceiveMarketingNotificationsAndEmails → String
-
show I agree to receive marketing notifications and emails text.
no setter
- applicationCurrentlyNotResponding → String
-
show application currently not responding text.
no setter
- applicationNotNespondingIfNoInternet → String
-
show mwarning message when application is not responding because iinternate connection.
no setter
- appTitle → String
-
Title of the app (notably seen in Android recents menu)
no setter
- batteryVoltage → String
-
show Battery Voltage text.
no setter
- cancel → String
-
show cancel text.
no setter
- cellkitConnectionDialogBody → String
-
Cellkit connection dialog body text
no setter
- changesNotSavedPoup → String
-
show changes not saved poup text.
no setter
- checkFollowing → String
-
show warning text Please check the following.
no setter
- city → String
-
show City text.
no setter
- clearAcceptedTCUsers → String
-
show clear Accepted TCUsers text.
no setter
- confirmChanges → String
-
show confirm changes text.
no setter
- connected → String
-
show ziconnectedp text.
no setter
- connectedIPAddress → String
-
show Connected IP Address text.
no setter
- connectGenerator → String
-
show connect Generator text.
no setter
- connectionStatus → String
-
show connection status text.
no setter
- connectionType → String
-
show connection type text.
no setter
- contactDetailsUpdated → String
-
show message once Contact details have been updated.
no setter
- contactUs → String
-
show contact us text.
no setter
- contactYourDealer → String
-
show contact your dealer text.
no setter
- continueText → String
-
show text continue.
no setter
- controllerClockTime → String
-
show controller clock time text.
no setter
- controllerData → String
-
show controller data text.
no setter
- controllerPin → String
-
show controller pin text.
no setter
- controllerTemperature → String
-
show controller temperature text.
no setter
- controllerType → String
-
show controller type text.
no setter
- copiedToClipboard → String
-
show Copied to clipboard text.
no setter
- couldNotSaveGeneratorDetails → String
-
show could not save generator detailsp text.
no setter
- couldNotSaveMarketingPreferences → String
-
show Could not save marketing preferences text.
no setter
- couldNotUpdateMarketingNotificationsAndEmails → String
-
show Could not update marketing notifications and emails. text.
no setter
- credentialTermsContents → String
-
Contents of the legal Credential Terms and Conditions page.
no setter
- currentFirmware → String
-
show current firmware text.
no setter
- delete → String
-
show Delete text.
no setter
- deleteAccount → String
-
show delete account text.
no setter
- deletingAccountImmediateAndPermanent → String
-
show deleting account immediate and permanent text.
no setter
- diesel → String
-
show diesel text.
no setter
- directions → String
-
show directions text.
no setter
- dismiss → String
-
show dismiss text.
no setter
- displayName → String
-
show this text while Display Name.
no setter
- displayNameOptional → String
-
show this text while Display Name (Optional).
no setter
- eCOCycle → String
-
show eCO Cycle text.
no setter
- editGeneratorDetails → String
-
show edit generator details text.
no setter
- editLoadName → String
-
show edit load name text.
no setter
- editPIMName → String
-
show edit PIM name text.
no setter
- email → String
-
show email text.
no setter
- emailDealer → String
-
show email dealer text.
no setter
- emailDealerButton → String
-
show email dealer button text.
no setter
- engineCompartmentTemperature → String
-
show engine compartment temperature text.
no setter
- engineCoolantTemperature → String
-
show engine coolant temperature text.
no setter
- engineData → String
-
show engine data' text.
no setter
- engineOilPressure → String
-
show engine oil pressure text.
no setter
- engineSpeed → String
-
show engine speed text.
no setter
- enterGeneratorDetails → String
-
show this text while enter your generator details below.
no setter
- entryIsEmpty → String
-
show entry is empty text.
no setter
- errorWhileUpdatingContactDetails → String
-
show Error message while updating contact details.
no setter
- errorWhileUpdatingPIMValue → String
-
show error While Updating PIM Value text.
no setter
- exerciseDetails → String
-
show exercise details text.
no setter
- exit → String
-
show exit text.
no setter
- faq → String
-
No description provided for @faq.
no setter
- feedback → String
-
show enter your feedback here text.
no setter
- findControllerPin → String
-
show text to find the Controller Pin.
no setter
- findDealer → String
-
show Find a dealer > text.
no setter
- findSerialNumber → String
-
show text to find the Serial Number.
no setter
- finishClose → String
-
show finish close text.
no setter
- first → String
-
show 1. text.
no setter
- firstName → String
-
show First Name text.
no setter
- forgotOnCuePlusUsernamePassword → String
-
show forgot onCuePlus username password text.
no setter
- foundMatch → String
-
show We found a match! text.
no setter
- fuelType → String
-
show fuel type text.
no setter
- gasoline → String
-
show gasoline text.
no setter
- generator → String
-
show generator text.
no setter
- generatorAdditionInfoButton → String
-
show generator addition info button text.
no setter
- generatorAlreadyAdded → String
-
If serial number is already added the shhow Generator already added text.
no setter
- generatorConnectedToInternet → String
-
show warning text Ensure the generator is connected to the internet.
no setter
- generatorDetailsNotValidated → String
-
show Generator details could not be validated warning text.
no setter
- generatorDetailsSuccessfullyUpdated → String
-
show generator details successfully updated text.
no setter
- generatorDetailsValidated → String
-
show text Generator details have been validated.
no setter
- generatorDisplayName → String
-
show generator display name text.
no setter
- generatorEnteryFoundText → String
-
new generator entry found text.
no setter
- generatorFrequency → String
-
show generator frequency text.
no setter
- generatorHelperText → String
-
new generator add helper text.
no setter
- generatorLastRan → String
-
show generator last ran text.
no setter
- generatorModel → String
-
show generator model text.
no setter
- generatorNotRunNextOutage → String
-
show generator not run next outage text.
no setter
- generatorProfile → String
-
show generator Profile text.
no setter
- generatorRunningHours → String
-
show Generator running 8+ hours text.
no setter
- generatorSerialNumber → String
-
Generator Serial Number (Required) text.
no setter
- generatorStartStop → String
-
show Generator Running/ Stopped text.
no setter
- generatorSuccessfullyAdded → String
-
show generator successfully added text.
no setter
- generatorValidatingerror → String
-
show error message while validate the generator text.
no setter
- generatorVoltageLine → String
-
show generator voltage line text.
no setter
- getYourGeneratorConnected → String
-
show text get your generator connected.
no setter
- goodAfternoon → String
-
Good afternoon greeting in dashboard page
no setter
- goodEvening → String
-
Good evening greeting in dashboard page
no setter
- goodMorning → String
-
Good morning greeting in dashboard page
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- helpdeskInquiry → String
-
show Helpdesk Inquiry text.
no setter
- homeownerAppOptions → String
-
show homeowner app options text.
no setter
- homePowerSource → String
-
show home power source text.
no setter
- imageVideo → String
-
show test image / video here.
no setter
- incorrectControllerPin → String
-
show Incorrect Controller Pin warning text.
no setter
- invalidPassword → String
-
show invalid assword text.
no setter
- invalidUsername → String
-
show invalid username text.
no setter
- kohlerSupport → String
-
show kohler support text.
no setter
- lastConnected → String
-
show last connected text.
no setter
- lastName → String
-
show last name text.
no setter
- legalOptions → String
-
show legal options text.
no setter
- liquidPropane → String
-
show liquid propane text.
no setter
- loadedFullSpeed → String
-
show loaded full speed text.
no setter
- loadModule → String
-
show load module text.
no setter
- localeName → String
-
final
- locationUserInviteTitle → String
-
show Location Users title
no setter
- locationUsers → String
-
show Location Users text on profile page
no setter
- locationUsersAddRemoveDevices → String
-
Bullet: users can add/remove devices
no setter
- locationUsersDeleteLocations → String
-
Bullet: users can delete locations
no setter
- locationUsersEditDetails → String
-
Bullet: users can edit location details
no setter
- locationUsersInviteRemove → String
-
Bullet: users can invite/remove users
no setter
- locationUsersViewControl → String
-
Bullet: users can view/control devices
no setter
- login → String
-
show login text.
no setter
- logOut → String
-
show logOut text.
no setter
- lubeOilTemperature → String
-
show lube oil temperature text.
no setter
- maintenance → String
-
show maintenance text.
no setter
- maintenanceDue → String
-
show maintenance due text.
no setter
- maintenanceHistory → String
-
show maintenance history text.
no setter
- maintenanceReminders → String
-
show Maintenance Reminders text.
no setter
- marketingCommunications → String
-
show Marketing Communications text.
no setter
- maxImportLimitText → String
-
max important limit text.
no setter
- missingAddress → String
-
show missingAddress text.
no setter
- missingCompanyEmail → String
-
show company Email text.
no setter
- missingFirstName → String
-
show Missing first name text.
no setter
- missingLastName → String
-
show Missing firslastt name text.
no setter
- mobileDeviceConnectedToInternetOrDataAndTryAgain → String
-
show mobile device connected to tnternet or data and try again text.
no setter
- myContactDetails → String
-
my contact details information.
no setter
- naturalGas → String
-
show natural gas text.
no setter
-
Title of the Dashboard route displayed on the bottom nav bar
no setter
-
Title of the Notifications route displayed on the bottom nav bar
no setter
-
Title of the Profile route displayed on the bottom nav bar
no setter
- nextScheduled → String
-
show next scheduled text.
no setter
- noAddressData → String
-
show no address data text.
no setter
- noDataAvailable → String
-
show no data available text.
no setter
- noDevicesImport → String
-
show no devices import text.
no setter
- none → String
-
show none text.
no setter
- notDeleteGenerator → String
-
show not delete generator text.
no setter
- noThanks → String
-
show No Thanks text.
no setter
- noticesAllOtherNotices → String
-
show Notices - all other notices text.
no setter
- notificationTypes → String
-
show Notification Types text.
no setter
- notInAuto → String
-
show not in auto text.
no setter
- noUser → String
-
noUser
no setter
- offline → String
-
show offline text.
no setter
- offNotInAuto → String
-
show OFF not in auto text.
no setter
- oncueLoginToAddGenerators → String
-
The 'to add generators...' text in the 'Tap here to add generators from OnCue Plus' message
no setter
- onCuePlusPassword → String
-
show on cuePlus password text.
no setter
- onCuePlusUsername → String
-
show onCue plus username text.
no setter
- onlineOffline → String
-
show Online/Offline text.
no setter
- pendingUserTxt → String
-
User list: show pendingUser when user is joined yet
no setter
- pIMConfiguration → String
-
show PIM configuration text.
no setter
- pleaseTryAgain → String
-
show please try again text.
no setter
- problemAddingGeneratorToAccount → String
-
show problem adding generator to account text.
no setter
- pushNotificationSettings → String
-
show Push Notification Settings text.
no setter
- readyToRun → String
-
show ready to run text.
no setter
- recheckControllerPin → String
-
show recheck the Controller Pin and try again text.
no setter
- reminders → String
-
show Reminders text.
no setter
- removeFromImportList → String
-
show remove from import list text.
no setter
- removeGenerator → String
-
show remove generator text.
no setter
- removeGeneratorFromAccount → String
-
show remove generator from account text.
no setter
- removeUser → String
-
Remove user title
no setter
- removeUserError → String
-
Remove user: error message when user removed
no setter
- removeUserSuccess → String
-
Remove user: successful message when user removed
no setter
- required → String
-
show required text.
no setter
- retry → String
-
show retry text.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveChanges → String
-
show save changes text as button.
no setter
- scheduleStartExercise → String
-
show schedule start exercise text.
no setter
- second → String
-
show 2. text.
no setter
- selectLocation → String
-
show select location text.
no setter
- serialNumberMistyped → String
-
show warning message if serial number is mistyped or device has not connected.
no setter
- serialNumberNotValidated → String
-
show warning text The serial number of your generator could not be validated.
no setter
- serialNumberTypedCorrectly → String
-
show warning text Ensure the serial number is typed correctly.
no setter
- settings → String
-
show settings text.
no setter
- shutdown → String
-
show shutdown text.
no setter
- shutdownFailure → String
-
show shutdown failure text.
no setter
- shutdowns → String
-
show Notification Shutdowns text.
no setter
- state → String
-
show state text.
no setter
- tapNameEdit → String
-
show tap name edit text.
no setter
- termsConditions → String
-
show terms conditions text.
no setter
- testCopyHere → String
-
show test copy here.
no setter
- testingCycleRunning → String
-
show testing cycle running text.
no setter
- totalEngineHours → String
-
show total engine hours text.
no setter
- totalEngineRuntime → String
-
show Total Engine Runtime Hours text.
no setter
- totalOperationTime → String
-
show total operation time text.
no setter
- trueRatedPower → String
-
show true rated power text.
no setter
- trueTotalPower → String
-
show true total power text.
no setter
- tryAgainLater → String
-
show try again later text.
no setter
- tryingConnectOffline → String
-
show trying connect offline text.
no setter
- tryingToConnect → String
-
show trying to connect text.
no setter
-
show unavailable text.
no setter
- unknownFuelType → String
-
show Unknown Fuel Type text.
no setter
- unloaded → String
-
show unloaded text.
no setter
- unloadedFullSpeed → String
-
show unloaded Full Speed text.
no setter
- userGuide → String
-
show FAG text on contact page
no setter
- utility → String
-
show utility text.
no setter
- utilityOutageRunning → String
-
show utility outage running text.
no setter
- viewMaintenanceHistory → String
-
show view maintenance history text.
no setter
- warnings → String
-
show Notification Warnings text.
no setter
- welcomeBack → String
-
show welcome back text.
no setter
- you → String
-
Location User: you
no setter
- zip → String
-
show zip text.
no setter
Methods
-
confirmRemoveUser(
Object name) → String - Dialog message asking to confirm removing a user from the location
-
goodAfternoonWithName(
String name) → String - Good afternoon greeting with name in dashboard page
-
goodEveningWithName(
String name) → String - Good evening greeting with name in dashboard page
-
goodMorningWithName(
String name) → String - Good morning greeting with name in dashboard page
-
inviteSentText(
String inviteDate) → String - User list: show pendingUser when invitation is sent
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parameterHours(
double? hours) → String - Format used for displaying a parameter's value in hours
-
toString(
) → String -
A string representation of this object.
inherited
-
welcomeBackWithName(
String name) → String - show welcome back text with homeowner name
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → AppLocalizations
Constants
-
delegate
→ const LocalizationsDelegate<
AppLocalizations> -
localizationsDelegates
→ const List<
LocalizationsDelegate> - A list of this localizations delegate along with the default localizations delegates.
-
supportedLocales
→ const List<
Locale> - A list of this localizations delegate's supported locales.