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

currencyAED String
No description provided for @currencyAED.
no setter
currencyAFN String
No description provided for @currencyAFN.
no setter
currencyALL String
No description provided for @currencyALL.
no setter
currencyAMD String
No description provided for @currencyAMD.
no setter
currencyARS String
No description provided for @currencyARS.
no setter
currencyAUD String
No description provided for @currencyAUD.
no setter
currencyAZN String
No description provided for @currencyAZN.
no setter
currencyBAM String
No description provided for @currencyBAM.
no setter
currencyBBD String
No description provided for @currencyBBD.
no setter
currencyBDT String
No description provided for @currencyBDT.
no setter
currencyBGN String
No description provided for @currencyBGN.
no setter
currencyBHD String
No description provided for @currencyBHD.
no setter
currencyBIF String
No description provided for @currencyBIF.
no setter
currencyBMD String
No description provided for @currencyBMD.
no setter
currencyBND String
No description provided for @currencyBND.
no setter
currencyBOB String
No description provided for @currencyBOB.
no setter
currencyBRL String
No description provided for @currencyBRL.
no setter
currencyBTN String
No description provided for @currencyBTN.
no setter
currencyBWP String
No description provided for @currencyBWP.
no setter
currencyBYN String
No description provided for @currencyBYN.
no setter
currencyBZD String
No description provided for @currencyBZD.
no setter
currencyCAD String
No description provided for @currencyCAD.
no setter
currencyCDF String
No description provided for @currencyCDF.
no setter
currencyCHF String
No description provided for @currencyCHF.
no setter
currencyCLP String
No description provided for @currencyCLP.
no setter
currencyCNY String
No description provided for @currencyCNY.
no setter
currencyCOP String
No description provided for @currencyCOP.
no setter
currencyCRC String
No description provided for @currencyCRC.
no setter
currencyCZK String
No description provided for @currencyCZK.
no setter
currencyDKK String
No description provided for @currencyDKK.
no setter
currencyDOP String
No description provided for @currencyDOP.
no setter
currencyDZD String
No description provided for @currencyDZD.
no setter
currencyEGP String
No description provided for @currencyEGP.
no setter
currencyETB String
No description provided for @currencyETB.
no setter
currencyEUR String
No description provided for @currencyEUR.
no setter
currencyGBP String
No description provided for @currencyGBP.
no setter
currencyGEL String
No description provided for @currencyGEL.
no setter
currencyGHS String
No description provided for @currencyGHS.
no setter
currencyGMD String
No description provided for @currencyGMD.
no setter
currencyGTQ String
No description provided for @currencyGTQ.
no setter
currencyGYD String
No description provided for @currencyGYD.
no setter
currencyHKD String
No description provided for @currencyHKD.
no setter
currencyHTG String
No description provided for @currencyHTG.
no setter
currencyHUF String
No description provided for @currencyHUF.
no setter
currencyIDR String
No description provided for @currencyIDR.
no setter
currencyILS String
No description provided for @currencyILS.
no setter
currencyINR String
No description provided for @currencyINR.
no setter
currencyISK String
No description provided for @currencyISK.
no setter
currencyJMD String
No description provided for @currencyJMD.
no setter
currencyJOD String
No description provided for @currencyJOD.
no setter
currencyJPY String
No description provided for @currencyJPY.
no setter
currencyKES String
No description provided for @currencyKES.
no setter
currencyKGS String
No description provided for @currencyKGS.
no setter
currencyKHR String
No description provided for @currencyKHR.
no setter
currencyKRW String
No description provided for @currencyKRW.
no setter
currencyKWD String
No description provided for @currencyKWD.
no setter
currencyKYD String
No description provided for @currencyKYD.
no setter
currencyKZT String
No description provided for @currencyKZT.
no setter
currencyLAK String
No description provided for @currencyLAK.
no setter
currencyLKR String
No description provided for @currencyLKR.
no setter
currencyLRD String
No description provided for @currencyLRD.
no setter
currencyMAD String
No description provided for @currencyMAD.
no setter
currencyMDL String
No description provided for @currencyMDL.
no setter
currencyMKD String
No description provided for @currencyMKD.
no setter
currencyMMK String
No description provided for @currencyMMK.
no setter
currencyMNT String
No description provided for @currencyMNT.
no setter
currencyMUR String
No description provided for @currencyMUR.
no setter
currencyMWK String
No description provided for @currencyMWK.
no setter
currencyMXN String
No description provided for @currencyMXN.
no setter
currencyMYR String
No description provided for @currencyMYR.
no setter
currencyMZN String
No description provided for @currencyMZN.
no setter
currencyNAD String
No description provided for @currencyNAD.
no setter
currencyNGN String
No description provided for @currencyNGN.
no setter
currencyNIO String
No description provided for @currencyNIO.
no setter
currencyNOK String
No description provided for @currencyNOK.
no setter
currencyNPR String
No description provided for @currencyNPR.
no setter
currencyNZD String
No description provided for @currencyNZD.
no setter
currencyOMR String
No description provided for @currencyOMR.
no setter
currencyPEN String
No description provided for @currencyPEN.
no setter
currencyPGK String
No description provided for @currencyPGK.
no setter
currencyPHP String
No description provided for @currencyPHP.
no setter
currencyPKR String
No description provided for @currencyPKR.
no setter
currencyPLN String
No description provided for @currencyPLN.
no setter
currencyPYG String
No description provided for @currencyPYG.
no setter
currencyQAR String
No description provided for @currencyQAR.
no setter
currencyRON String
No description provided for @currencyRON.
no setter
currencyRSD String
No description provided for @currencyRSD.
no setter
currencyRUB String
No description provided for @currencyRUB.
no setter
currencyRWF String
No description provided for @currencyRWF.
no setter
currencySAR String
No description provided for @currencySAR.
no setter
currencySCR String
No description provided for @currencySCR.
no setter
currencySEK String
No description provided for @currencySEK.
no setter
currencySGD String
No description provided for @currencySGD.
no setter
currencySOS String
No description provided for @currencySOS.
no setter
currencySRD String
No description provided for @currencySRD.
no setter
currencySYP String
No description provided for @currencySYP.
no setter
currencyTHB String
No description provided for @currencyTHB.
no setter
currencyTND String
No description provided for @currencyTND.
no setter
currencyTRY String
No description provided for @currencyTRY.
no setter
currencyTTD String
No description provided for @currencyTTD.
no setter
currencyTWD String
No description provided for @currencyTWD.
no setter
currencyTZS String
No description provided for @currencyTZS.
no setter
currencyUAH String
No description provided for @currencyUAH.
no setter
currencyUGX String
No description provided for @currencyUGX.
no setter
currencyUSD String
No description provided for @currencyUSD.
no setter
currencyUYU String
No description provided for @currencyUYU.
no setter
currencyUZS String
No description provided for @currencyUZS.
no setter
currencyVEF String
No description provided for @currencyVEF.
no setter
currencyVND String
No description provided for @currencyVND.
no setter
currencyXAF String
No description provided for @currencyXAF.
no setter
currencyXOF String
No description provided for @currencyXOF.
no setter
currencyYER String
No description provided for @currencyYER.
no setter
currencyZAR String
No description provided for @currencyZAR.
no setter
currencyZMW String
No description provided for @currencyZMW.
no setter
hashCode int
The hash code for this object.
no setterinherited
localeName String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

localizationsDelegates List<LocalizationsDelegate>
A list of this localizations delegate along with the default localizations delegates.
getter/setter pair

Static Methods

of(BuildContext context) AppLocalizations?

Constants

delegate → const LocalizationsDelegate<AppLocalizations>
supportedLocales → const List<Locale>
A list of this localizations delegate's supported locales.