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

Constructors

AppLocalizations(String locale)

Properties

about String
No description provided for @about.
read-only
add String
No description provided for @add.
read-only
addDep String
No description provided for @addDep.
read-only
addDepFromText String
No description provided for @addDepFromText.
read-only
after String
No description provided for @after.
read-only
archive String
No description provided for @archive.
read-only
archiveAt String
No description provided for @archiveAt.
read-only
areYouSureToDelete String
No description provided for @areYouSureToDelete.
read-only
authorizePlease String
No description provided for @authorizePlease.
read-only
awaitResults String
No description provided for @awaitResults.
read-only
before String
No description provided for @before.
read-only
cameraAccessDenied String
No description provided for @cameraAccessDenied.
read-only
cantAddDepBadFormat String
No description provided for @cantAddDepBadFormat.
read-only
cantAddDepDuplicate String
No description provided for @cantAddDepDuplicate.
read-only
chooseLanguage String
No description provided for @chooseLanguage.
read-only
clear String
No description provided for @clear.
read-only
dark String
No description provided for @dark.
read-only
data String
No description provided for @data.
read-only
deleteDep String
No description provided for @deleteDep.
read-only
depList String
No description provided for @depList.
read-only
detailed String
No description provided for @detailed.
read-only
developer String
No description provided for @developer.
read-only
doScanQrCode String
No description provided for @doScanQrCode.
read-only
emptyDepList String
No description provided for @emptyDepList.
read-only
emptyListOfPeople String
No description provided for @emptyListOfPeople.
read-only
emptyListOfServices String
No description provided for @emptyListOfServices.
read-only
error String
No description provided for @error.
read-only
errorDepSave String
No description provided for @errorDepSave.
read-only
errorFormat String
No description provided for @errorFormat.
read-only
errorFS String
No description provided for @errorFS.
read-only
errorSave String
No description provided for @errorSave.
read-only
errorService String
No description provided for @errorService.
read-only
errorWrongCertificate String
No description provided for @errorWrongCertificate.
read-only
exportLastMonth String
No description provided for @exportLastMonth.
read-only
exportLastWeek String
No description provided for @exportLastWeek.
read-only
exportThisMonth String
No description provided for @exportThisMonth.
read-only
exportThisWeek String
No description provided for @exportThisWeek.
read-only
fileSavedTo String
No description provided for @fileSavedTo.
read-only
flashLight String
No description provided for @flashLight.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
httpAccessError String
No description provided for @httpAccessError.
read-only
internetError String
No description provided for @internetError.
read-only
light String
No description provided for @light.
read-only
list String
No description provided for @list.
read-only
listOfServicesByDays String
No description provided for @listOfServicesByDays.
read-only
loading String
No description provided for @loading.
read-only
localeName String
final
magnification String
No description provided for @magnification.
read-only
magnificationOfServiceWidgets String
No description provided for @magnificationOfServiceWidgets.
read-only
makeProofOfService String
No description provided for @makeProofOfService.
read-only
maxServicesToStoreInArchive String
No description provided for @maxServicesToStoreInArchive.
read-only
microphoneAccessDenied String
No description provided for @microphoneAccessDenied.
read-only
noServicesForClient String
No description provided for @noServicesForClient.
read-only
onRequest String
No description provided for @onRequest.
read-only
optional String
No description provided for @optional.
read-only
orTestDepList String
No description provided for @orTestDepList.
read-only
proofOfService String
No description provided for @proofOfService.
read-only
putDepText String
No description provided for @putDepText.
read-only
putDepTextField String
No description provided for @putDepTextField.
read-only
putDepTextFieldHint String
No description provided for @putDepTextFieldHint.
read-only
repeatSearch String
No description provided for @repeatSearch.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
saveTheFileInOrderToNotLoseIt String
No description provided for @saveTheFileInOrderToNotLoseIt.
read-only
scanQrCode String
No description provided for @scanQrCode.
read-only
No description provided for @search.
read-only
searchQR String
No description provided for @searchQR.
read-only
selectDepForDelete String
No description provided for @selectDepForDelete.
read-only
serverError String
No description provided for @serverError.
read-only
serviceIsFull String
No description provided for @serviceIsFull.
read-only
servicesNotFound String
No description provided for @servicesNotFound.
read-only
settings String
No description provided for @settings.
read-only
shortAboutApp String
No description provided for @shortAboutApp.
read-only
small String
No description provided for @small.
read-only
sslError String
No description provided for @sslError.
read-only
takePicture String
No description provided for @takePicture.
read-only
testConnection String
No description provided for @testConnection.
read-only
theme String
No description provided for @theme.
read-only

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>
_AppLocalizationsDelegate()
localizationsDelegates → const List<LocalizationsDelegate>
A list of this localizations delegate along with the default localizations delegates.
<LocalizationsDelegate<dynamic>>[delegate, GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, GlobalWidgetsLocalizations.delegate]
supportedLocales → const List<Locale>
A list of this localizations delegate's supported locales.
<Locale>[Locale('en'), Locale('ru'), Locale('de')]