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 '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.

Implementers

Constructors

AppLocalizations(String locale)

Properties

addDetailsButton String
No description provided for @addDetailsButton.
no setter
analyzeButton String
No description provided for @analyzeButton.
no setter
analyzingImage String
No description provided for @analyzingImage.
no setter
anErrorOccurred String
No description provided for @anErrorOccurred.
no setter
appDisclaimerBody String
Main text for the disclaimer section
no setter
appDisclaimerTitle String
Title for the disclaimer section
no setter
appFooterGrantInfo String
Grant information for the app footer, includes a link
no setter
appTitle String
The main title of the application
no setter
cameraButtonLabel String
No description provided for @cameraButtonLabel.
no setter
classificationScreenTitle String
No description provided for @classificationScreenTitle.
no setter
classificationServiceErrorModelLoadingFailed String
No description provided for @classificationServiceErrorModelLoadingFailed.
no setter
classificationServiceErrorModelNotLoaded String
No description provided for @classificationServiceErrorModelNotLoaded.
no setter
classificationServiceUnknownSpeciesCommonName String
No description provided for @classificationServiceUnknownSpeciesCommonName.
no setter
classificationServiceUnknownSpeciesDescription String
No description provided for @classificationServiceUnknownSpeciesDescription.
no setter
classificationServiceUnknownSpeciesDistribution String
No description provided for @classificationServiceUnknownSpeciesDistribution.
no setter
classificationServiceUnknownSpeciesHabitat String
No description provided for @classificationServiceUnknownSpeciesHabitat.
no setter
classifyMosquitoButtonSubtitle String
No description provided for @classifyMosquitoButtonSubtitle.
no setter
classifyMosquitoButtonTitle String
No description provided for @classifyMosquitoButtonTitle.
no setter
disclaimerEducationalUse String
No description provided for @disclaimerEducationalUse.
no setter
diseaseDetailScreenDescription String
No description provided for @diseaseDetailScreenDescription.
no setter
diseaseDetailScreenInfoNotAvailable String
No description provided for @diseaseDetailScreenInfoNotAvailable.
no setter
diseaseDetailScreenPrevalence String
No description provided for @diseaseDetailScreenPrevalence.
no setter
diseaseDetailScreenPrevention String
No description provided for @diseaseDetailScreenPrevention.
no setter
diseaseDetailScreenSymptoms String
No description provided for @diseaseDetailScreenSymptoms.
no setter
diseaseDetailScreenTransmittedBy String
No description provided for @diseaseDetailScreenTransmittedBy.
no setter
diseaseDetailScreenTreatment String
No description provided for @diseaseDetailScreenTreatment.
no setter
diseaseDetailScreenUnknownVector String
No description provided for @diseaseDetailScreenUnknownVector.
no setter
diseaseDetailScreenVectorsNotAvailable String
No description provided for @diseaseDetailScreenVectorsNotAvailable.
no setter
diseaseInfoScreenTitle String
No description provided for @diseaseInfoScreenTitle.
no setter
diseaseRisksButton String
No description provided for @diseaseRisksButton.
no setter
diseasesInfoButtonSubtitle String
No description provided for @diseasesInfoButtonSubtitle.
no setter
diseasesInfoButtonTitle String
No description provided for @diseasesInfoButtonTitle.
no setter
errorFailedWebPrediction String
No description provided for @errorFailedWebPrediction.
no setter
errorNoImageSelected String
No description provided for @errorNoImageSelected.
no setter
fetchingWebPrediction String
No description provided for @fetchingWebPrediction.
no setter
fieldRequiredError String
No description provided for @fieldRequiredError.
no setter
galleryButtonLabel String
No description provided for @galleryButtonLabel.
no setter
hashCode int
The hash code for this object.
no setterinherited
homePageBannerSubtitle String
No description provided for @homePageBannerSubtitle.
no setter
homePageBannerTitle String
No description provided for @homePageBannerTitle.
no setter
homePageMosquitoActivityMapButtonSubtitle String
No description provided for @homePageMosquitoActivityMapButtonSubtitle.
no setter
homePageMosquitoActivityMapButtonTitle String
No description provided for @homePageMosquitoActivityMapButtonTitle.
no setter
homePageTitle String
No description provided for @homePageTitle.
no setter
latitudeLabel String
No description provided for @latitudeLabel.
no setter
loadingModelDialogContent String
No description provided for @loadingModelDialogContent.
no setter
loadingModelDialogTitle String
No description provided for @loadingModelDialogTitle.
no setter
localeName String
final
locationInstruction String
No description provided for @locationInstruction.
no setter
locationRequiredError String
No description provided for @locationRequiredError.
no setter
locationSectionTitle String
No description provided for @locationSectionTitle.
no setter
longitudeLabel String
No description provided for @longitudeLabel.
no setter
mosquitoDetailScreenAssociatedDiseases String
No description provided for @mosquitoDetailScreenAssociatedDiseases.
no setter
mosquitoDetailScreenDescription String
No description provided for @mosquitoDetailScreenDescription.
no setter
mosquitoDetailScreenDistribution String
No description provided for @mosquitoDetailScreenDistribution.
no setter
mosquitoDetailScreenHabitat String
No description provided for @mosquitoDetailScreenHabitat.
no setter
mosquitoDetailScreenNoAssociatedDiseases String
No description provided for @mosquitoDetailScreenNoAssociatedDiseases.
no setter
mosquitoGalleryButtonSubtitle String
No description provided for @mosquitoGalleryButtonSubtitle.
no setter
mosquitoGalleryButtonTitle String
No description provided for @mosquitoGalleryButtonTitle.
no setter
mosquitoGalleryScreenTitle String
No description provided for @mosquitoGalleryScreenTitle.
no setter
noDiseasesFound String
No description provided for @noDiseasesFound.
no setter
noImageSelectedSubtitle String
No description provided for @noImageSelectedSubtitle.
no setter
noImageSelectedTitle String
No description provided for @noImageSelectedTitle.
no setter
noKnownDiseaseRisks String
No description provided for @noKnownDiseaseRisks.
no setter
noKnownDiseaseVectors String
No description provided for @noKnownDiseaseVectors.
no setter
noMosquitoSpeciesFound String
No description provided for @noMosquitoSpeciesFound.
no setter
notesHint String
No description provided for @notesHint.
no setter
notesLabel String
No description provided for @notesLabel.
no setter
observationDetailsTitle String
No description provided for @observationDetailsTitle.
no setter
potentialDiseaseRisksSubtitle String
No description provided for @potentialDiseaseRisksSubtitle.
no setter
potentialDiseaseRisksTitle String
No description provided for @potentialDiseaseRisksTitle.
no setter
predictionSummaryTitle String
No description provided for @predictionSummaryTitle.
no setter
resetButtonLabel String
No description provided for @resetButtonLabel.
no setter
retryButton String
No description provided for @retryButton.
no setter
retryButtonLabel String
No description provided for @retryButtonLabel.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchDiseasesHint String
No description provided for @searchDiseasesHint.
no setter
searchMosquitoSpeciesHint String
No description provided for @searchMosquitoSpeciesHint.
no setter
speciesInfoButton String
No description provided for @speciesInfoButton.
no setter
speciesNotDefinedWebPrediction String
No description provided for @speciesNotDefinedWebPrediction.
no setter
submitObservationButton String
No description provided for @submitObservationButton.
no setter
submittingObservation String
No description provided for @submittingObservation.
no setter
thankYouForParticipation String
No description provided for @thankYouForParticipation.
no setter
tooltipSelectLanguage String
No description provided for @tooltipSelectLanguage.
no setter
tryDifferentSearchTerm String
No description provided for @tryDifferentSearchTerm.
no setter
unknownSpecies String
No description provided for @unknownSpecies.
no setter
uploadImageHint String
No description provided for @uploadImageHint.
no setter
uploadImageSubHint String
No description provided for @uploadImageSubHint.
no setter
webViewFailedToLoad String
No description provided for @webViewFailedToLoad.
no setter
webViewRetryButton String
No description provided for @webViewRetryButton.
no setter
webViewScreenTitleMosquitoMap String
No description provided for @webViewScreenTitleMosquitoMap.
no setter

Methods

commonNameLabel(String commonName) String
No description provided for @commonNameLabel.
confidenceLabel(String confidenceValue) String
No description provided for @confidenceLabel.
diseaseVectorsCount(int count) String
No description provided for @diseaseVectorsCount.
errorClassificationFailed(String error) String
No description provided for @errorClassificationFailed.
errorFailedToLoadModel(String error) String
No description provided for @errorFailedToLoadModel.
errorFailedToPickImage(String error) String
No description provided for @errorFailedToPickImage.
errorSubmissionFailed(String error) String
Error message when submission fails.
habitatLabel(String habitat) String
No description provided for @habitatLabel.
inferenceTimeLabel(int timeValue) String
No description provided for @inferenceTimeLabel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prevalenceLabel(String prevalence) String
No description provided for @prevalenceLabel.
speciesLabel(String speciesName) String
No description provided for @speciesLabel.
submissionIdLabel(String id) String
Label showing the ID of the submitted observation.
toString() String
A string representation of this object.
inherited
vectorsLabel(String vectors) String
No description provided for @vectorsLabel.
viewModelErrorFailedToLoadDisease(String error) String
No description provided for @viewModelErrorFailedToLoadDisease.
viewModelErrorFailedToLoadDiseases(String error) String
No description provided for @viewModelErrorFailedToLoadDiseases.
viewModelErrorFailedToLoadDiseasesForVector(String error) String
No description provided for @viewModelErrorFailedToLoadDiseasesForVector.
viewModelErrorFailedToLoadMosquitoSpecies(String error) String
No description provided for @viewModelErrorFailedToLoadMosquitoSpecies.

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.