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 'generated/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

active String
No description provided for @active.
no setter
alpha String
No description provided for @alpha.
no setter
appTitle String
No description provided for @appTitle.
no setter
authenticationFailed String
No description provided for @authenticationFailed.
no setter
available String
No description provided for @available.
no setter
bandwidth String
No description provided for @bandwidth.
no setter
batteryLevel String
No description provided for @batteryLevel.
no setter
beta String
No description provided for @beta.
no setter
busy String
No description provided for @busy.
no setter
cancelConnection String
No description provided for @cancelConnection.
no setter
compatible String
No description provided for @compatible.
no setter
connect String
No description provided for @connect.
no setter
connected String
No description provided for @connected.
no setter
connecting String
No description provided for @connecting.
no setter
connectionFailed String
No description provided for @connectionFailed.
no setter
connectionLost String
No description provided for @connectionLost.
no setter
connectionTime String
No description provided for @connectionTime.
no setter
dataTransferred String
No description provided for @dataTransferred.
no setter
debug String
No description provided for @debug.
no setter
deprecated String
No description provided for @deprecated.
no setter
development String
No description provided for @development.
no setter
disabled String
No description provided for @disabled.
no setter
disconnect String
No description provided for @disconnect.
no setter
disconnected String
No description provided for @disconnected.
no setter
discovering String
No description provided for @discovering.
no setter
discoveryFailed String
No description provided for @discoveryFailed.
no setter
enabled String
No description provided for @enabled.
no setter
error String
No description provided for @error.
no setter
experimental String
No description provided for @experimental.
no setter
hashCode int
The hash code for this object.
no setterinherited
heartbeatFailed String
No description provided for @heartbeatFailed.
no setter
humidity String
No description provided for @humidity.
no setter
idle String
No description provided for @idle.
no setter
inactive String
No description provided for @inactive.
no setter
incompatible String
No description provided for @incompatible.
no setter
invalidResponse String
No description provided for @invalidResponse.
no setter
lastConnected String
No description provided for @lastConnected.
no setter
latency String
No description provided for @latency.
no setter
loading String
No description provided for @loading.
no setter
localeName String
final
maintenance String
No description provided for @maintenance.
no setter
maintenanceMode String
No description provided for @maintenanceMode.
no setter
networkError String
No description provided for @networkError.
no setter
noSystemsFound String
No description provided for @noSystemsFound.
no setter
offline String
No description provided for @offline.
no setter
online String
No description provided for @online.
no setter
packetsLost String
No description provided for @packetsLost.
no setter
permissionDenied String
No description provided for @permissionDenied.
no setter
pressure String
No description provided for @pressure.
no setter
processing String
No description provided for @processing.
no setter
production String
No description provided for @production.
no setter
ready String
No description provided for @ready.
no setter
reconnecting String
No description provided for @reconnecting.
no setter
reconnectionFailed String
No description provided for @reconnectionFailed.
no setter
refresh String
No description provided for @refresh.
no setter
release String
No description provided for @release.
no setter
retryConnection String
No description provided for @retryConnection.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saving String
No description provided for @saving.
no setter
scanning String
No description provided for @scanning.
no setter
signalStrength String
No description provided for @signalStrength.
no setter
stable String
No description provided for @stable.
no setter
supported String
No description provided for @supported.
no setter
systemBusy String
No description provided for @systemBusy.
no setter
systemCapabilities String
No description provided for @systemCapabilities.
no setter
systemError String
No description provided for @systemError.
no setter
systemFound String
No description provided for @systemFound.
no setter
systemIP String
No description provided for @systemIP.
no setter
systemLost String
No description provided for @systemLost.
no setter
systemName String
No description provided for @systemName.
no setter
systemPort String
No description provided for @systemPort.
no setter
systemStatus String
No description provided for @systemStatus.
no setter
systemUnavailable String
No description provided for @systemUnavailable.
no setter
systemVersion String
No description provided for @systemVersion.
no setter
temperature String
No description provided for @temperature.
no setter
testing String
No description provided for @testing.
no setter
timeoutError String
No description provided for @timeoutError.
no setter
unavailable String
No description provided for @unavailable.
no setter
unknown String
No description provided for @unknown.
no setter
unknownError String
No description provided for @unknownError.
no setter
unsupported String
No description provided for @unsupported.
no setter
updateAvailable String
No description provided for @updateAvailable.
no setter
updateRequired String
No description provided for @updateRequired.
no setter
upToDate String
No description provided for @upToDate.
no setter
waiting String
No description provided for @waiting.
no setter

Methods

foundSystems(Object count) String
No description provided for @foundSystems.
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.