AuthenticationLocalizations class abstract

Callers can lookup localized strings with an instance of AuthenticationLocalizations returned by AuthenticationLocalizations.of(context).

Applications need to include AuthenticationLocalizations.delegate() in their app's localizationDelegates list, and the locales they support in the app's supportedLocales list. For example:

import 'l10n/localizations.dart';

return MaterialApp(
  localizationsDelegates: AuthenticationLocalizations.localizationsDelegates,
  supportedLocales: AuthenticationLocalizations.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 AuthenticationLocalizations.supportedLocales property.

Implementers

Constructors

AuthenticationLocalizations(String locale)

Properties

appTitle → String
No description provided for @appTitle.
no setter
authenticationErrorMessage → String
No description provided for @authenticationErrorMessage.
no setter
continueLabel → String
No description provided for @continueLabel.
no setter
donateButtonLabel → String
No description provided for @donateButtonLabel.
no setter
email → String
No description provided for @email.
no setter
firstName → String
No description provided for @firstName.
no setter
forgotPasswordInfoLabel → String
No description provided for @forgotPasswordInfoLabel.
no setter
forgotPasswordScreenTitle → String
No description provided for @forgotPasswordScreenTitle.
no setter
lastName → String
No description provided for @lastName.
no setter
localeName → String
final
password → String
No description provided for @password.
no setter
phoneNumber → String
No description provided for @phoneNumber.
no setter
privacyPolicyButtonLabel → String
No description provided for @privacyPolicyButtonLabel.
no setter
resetPasswordSuccessInstructions → String
No description provided for @resetPasswordSuccessInstructions.
no setter
sendButtonLabel → String
No description provided for @sendButtonLabel.
no setter
signedInAs → String
No description provided for @signedInAs.
no setter
signInAfterSignUpError → String
No description provided for @signInAfterSignUpError.
no setter
signInRequiredToProceedLabel → String
No description provided for @signInRequiredToProceedLabel.
no setter
signInScreenMarketingText → String
No description provided for @signInScreenMarketingText.
no setter
signInScreenTitle → String
No description provided for @signInScreenTitle.
no setter
signUpScreenTitle → String
No description provided for @signUpScreenTitle.
no setter
termsAndConditionsInfo → String
No description provided for @termsAndConditionsInfo.
no setter
termsAndConditionsLabel → String
No description provided for @termsAndConditionsLabel.
no setter
validatorErrorEmptyString → String
No description provided for @validatorErrorEmptyString.
no setter

Static Methods

of(BuildContext context) AuthenticationLocalizations

Constants

delegate → const LocalizationsDelegate<AuthenticationLocalizations>
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.