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.new(String locale)

Properties

aboutme String
No description provided for @aboutme.
no setter
aiPlayground String
No description provided for @aiPlayground.
no setter
blockEntryOverview String
No description provided for @blockEntryOverview.
no setter
blockEntryOverviewDescription String
No description provided for @blockEntryOverviewDescription.
no setter
books String
No description provided for @books.
no setter
booksDescription String
No description provided for @booksDescription.
no setter
brightness String
Switch between dark and light mode!
no setter
contact String
No description provided for @contact.
no setter
cookieStatement String
No description provided for @cookieStatement.
no setter
No description provided for @copyright.
no setter
copyrightFooterTitle String
No description provided for @copyrightFooterTitle.
no setter
data String
No description provided for @data.
no setter
declarationOnAccessibility String
No description provided for @declarationOnAccessibility.
no setter
disclaimer String
No description provided for @disclaimer.
no setter
documents String
No description provided for @documents.
no setter
entryRedirectText String
No description provided for @entryRedirectText.
no setter
No description provided for @externalLinks.
no setter
familyFriends String
No description provided for @familyFriends.
no setter
films String
No description provided for @films.
no setter
filmsDescription String
No description provided for @filmsDescription.
no setter
follow String
No description provided for @follow.
no setter
games String
No description provided for @games.
no setter
gamesDescription String
No description provided for @gamesDescription.
no setter
guitar String
No description provided for @guitar.
no setter
hashCode int
The hash code for this object.
no setterinherited
homepage String
No description provided for @homepage.
no setter
imprint String
No description provided for @imprint.
no setter
lastModified String
No description provided for @lastModified.
no setter
localeName String
final
mailMe String
No description provided for @mailMe.
no setter
meditation String
No description provided for @meditation.
no setter
myPerfectDay String
No description provided for @myPerfectDay.
no setter
playgroundDescription String
No description provided for @playgroundDescription.
no setter
privacyPolicy String
No description provided for @privacyPolicy.
no setter
quotations String
No description provided for @quotations.
no setter
quotationsDescription String
No description provided for @quotationsDescription.
no setter
renderingPlayground String
No description provided for @renderingPlayground.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectSeedColor String
No description provided for @selectSeedColor.
no setter
shortDescriptionTextMyPersona String
No description provided for @shortDescriptionTextMyPersona.
no setter
sleep String
No description provided for @sleep.
no setter
spendCoffe String
No description provided for @spendCoffe.
no setter
sports String
No description provided for @sports.
no setter
studying String
No description provided for @studying.
no setter
switchLang String
No description provided for @switchLang.
no setter
toogleBrightness String
No description provided for @toogleBrightness.
no setter
toogleLanguage String
No description provided for @toogleLanguage.
no setter
visitBlogEntry String
No description provided for @visitBlogEntry.
no setter

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