IdentityLocalizations class abstract

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

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

import 'l10n/identity_localizations.dart';

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

Implementers

Constructors

IdentityLocalizations(String locale)

Properties

expiredVerificationCode String
No description provided for @expiredVerificationCode.
no setter
hashCode int
The hash code for this object.
no setterinherited
invalidMFACode String
No description provided for @invalidMFACode.
no setter
invalidVerificationCode String
No description provided for @invalidVerificationCode.
no setter
localeName String
final
readUserError String
No description provided for @readUserError.
no setter
resendSignUpCodeLimit String
No description provided for @resendSignUpCodeLimit.
no setter
resetPasswordLimit String
No description provided for @resetPasswordLimit.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionValidationFailed String
No description provided for @sessionValidationFailed.
no setter
signInNotAllowed String
No description provided for @signInNotAllowed.
no setter
unableToConfirmSignUp String
No description provided for @unableToConfirmSignUp.
no setter
unknownError String
No description provided for @unknownError.
no setter
userNameExists String
No description provided for @userNameExists.
no setter

Methods

confirmSignUpError(String error) String
No description provided for @confirmSignUpError.
confirmUserAttributeError(String error) String
No description provided for @confirmUserAttributeError.
mfaCodeValidationError(String error) String
No description provided for @mfaCodeValidationError.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resendSignUpCodeError(String error) String
No description provided for @resendSignUpCodeError.
resetPasswordError(String error) String
No description provided for @resetPasswordError.
saveUserError(String error) String
No description provided for @saveUserError.
sendVerificationCodeError(String error) String
No description provided for @sendVerificationCodeError.
signInError(String error) String
No description provided for @signInError.
signOutError(String error) String
No description provided for @signOutError.
signUpError(String error) String
No description provided for @signUpError.
toString() String
A string representation of this object.
inherited
totpSetupError(String error) String
No description provided for @totpSetupError.
totpVerifyError(String error) String
No description provided for @totpVerifyError.
updatePasswordError(String error) String
No description provided for @updatePasswordError.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) IdentityLocalizations

Constants

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