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

beTheFirstToComment String
No description provided for @beTheFirstToComment.
no setter
blog String
No description provided for @blog.
no setter
blogs String
No description provided for @blogs.
no setter
cancel String
No description provided for @cancel.
no setter
comment String
No description provided for @comment.
no setter
comments String
No description provided for @comments.
no setter
communities String
No description provided for @communities.
no setter
communityName String
No description provided for @communityName.
no setter
communityNameMaxLength String
No description provided for @communityNameMaxLength.
no setter
communityNameMinLength String
No description provided for @communityNameMinLength.
no setter
communityNameRequired String
No description provided for @communityNameRequired.
no setter
connectShareJourney String
No description provided for @connectShareJourney.
no setter
continueWithApple String
No description provided for @continueWithApple.
no setter
continueWithGoogle String
No description provided for @continueWithGoogle.
no setter
createCommunity String
No description provided for @createCommunity.
no setter
createPost String
No description provided for @createPost.
no setter
createWhereCanShare String
No description provided for @createWhereCanShare.
no setter
delete String
No description provided for @delete.
no setter
describeCommunity String
No description provided for @describeCommunity.
no setter
description String
No description provided for @description.
no setter
descriptionMaxLength String
No description provided for @descriptionMaxLength.
no setter
descriptionMinLength String
No description provided for @descriptionMinLength.
no setter
descriptionRequired String
No description provided for @descriptionRequired.
no setter
edit String
No description provided for @edit.
no setter
enterCommunityName String
No description provided for @enterCommunityName.
no setter
error String
No description provided for @error.
no setter
errorLoadingBlogs String
No description provided for @errorLoadingBlogs.
no setter
failedToLoadImage String
No description provided for @failedToLoadImage.
no setter
hashCode int
The hash code for this object.
no setterinherited
joinCommunity String
No description provided for @joinCommunity.
no setter
like String
No description provided for @like.
no setter
likes String
No description provided for @likes.
no setter
linkCopiedToClipboard String
No description provided for @linkCopiedToClipboard.
no setter
loading String
No description provided for @loading.
no setter
localeName String
final
logout String
No description provided for @logout.
no setter
noBlogsAvailable String
No description provided for @noBlogsAvailable.
no setter
noBlogsFound String
No description provided for @noBlogsFound.
no setter
noComments String
No description provided for @noComments.
no setter
noCommunitiesFound String
No description provided for @noCommunitiesFound.
no setter
noPostsYet String
No description provided for @noPostsYet.
no setter
post String
No description provided for @post.
no setter
replies String
No description provided for @replies.
no setter
reply String
No description provided for @reply.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
save String
No description provided for @save.
no setter
share String
No description provided for @share.
no setter
tryAgain String
No description provided for @tryAgain.
no setter
unableToOpenShareDialog String
No description provided for @unableToOpenShareDialog.
no setter
viewImage String
No description provided for @viewImage.
no setter
writeYourComment String
No description provided for @writeYourComment.
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.