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.new(String locale)

Properties

action String
No description provided for @action.
no setter
address1_required String
No description provided for @address1_required.
no setter
address2_required String
No description provided for @address2_required.
no setter
address_line_1 String
No description provided for @address_line_1.
no setter
address_line_2 String
No description provided for @address_line_2.
no setter
all_fields_are_required String
No description provided for @all_fields_are_required.
no setter
back String
No description provided for @back.
no setter
cannot_preview_file String
No description provided for @cannot_preview_file.
no setter
city String
No description provided for @city.
no setter
city_required String
No description provided for @city_required.
no setter
click_here String
No description provided for @click_here.
no setter
click_to_upload_file String
No description provided for @click_to_upload_file.
no setter
click_to_upload_files String
No description provided for @click_to_upload_files.
no setter
close String
No description provided for @close.
no setter
company String
No description provided for @company.
no setter
company_required String
No description provided for @company_required.
no setter
could_not_open_calendar String
No description provided for @could_not_open_calendar.
no setter
country String
No description provided for @country.
no setter
country_required String
No description provided for @country_required.
no setter
email String
No description provided for @email.
no setter
email_required String
No description provided for @email_required.
no setter
error String
No description provided for @error.
no setter
error_uploading_file String
No description provided for @error_uploading_file.
no setter
estimated_time String
No description provided for @estimated_time.
no setter
field_is_required String
No description provided for @field_is_required.
no setter
file_size_exceeds_limit String
No description provided for @file_size_exceeds_limit.
no setter
first_name String
No description provided for @first_name.
no setter
first_name_required String
No description provided for @first_name_required.
no setter
hashCode int
The hash code for this object.
no setterinherited
i_agree String
No description provided for @i_agree.
no setter
last_name String
No description provided for @last_name.
no setter
last_name_required String
No description provided for @last_name_required.
no setter
localeName String
final
max_character_required String
No description provided for @max_character_required.
no setter
meeting_scheduled String
No description provided for @meeting_scheduled.
no setter
min_character_required String
No description provided for @min_character_required.
no setter
name String
No description provided for @name.
no setter
next String
No description provided for @next.
no setter
no_internet_available String
No description provided for @no_internet_available.
no setter
optional String
No description provided for @optional.
no setter
phone String
No description provided for @phone.
no setter
phone_is_required String
No description provided for @phone_is_required.
no setter
please_enter_valid_email String
No description provided for @please_enter_valid_email.
no setter
No description provided for @please_provide_consent.
no setter
please_rank_all_options String
No description provided for @please_rank_all_options.
no setter
please_rate_all String
No description provided for @please_rate_all.
no setter
please_select_date String
No description provided for @please_select_date.
no setter
please_select_option String
No description provided for @please_select_option.
no setter
please_select_rating String
No description provided for @please_select_rating.
no setter
please_select_score String
No description provided for @please_select_score.
no setter
please_take_action String
No description provided for @please_take_action.
no setter
please_upload_file String
No description provided for @please_upload_file.
no setter
pls_schedule_meeting String
No description provided for @pls_schedule_meeting.
no setter
powered_by String
No description provided for @powered_by.
no setter
response_required String
No description provided for @response_required.
no setter
responses String
No description provided for @responses.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schedule_meeting String
No description provided for @schedule_meeting.
no setter
select_date String
No description provided for @select_date.
no setter
select_option String
No description provided for @select_option.
no setter
skip String
No description provided for @skip.
no setter
something_went_wrong String
No description provided for @something_went_wrong.
no setter
state String
No description provided for @state.
no setter
state_required String
No description provided for @state_required.
no setter
takes_less_than String
No description provided for @takes_less_than.
no setter
type_answer_here String
No description provided for @type_answer_here.
no setter
unable_to_connect String
No description provided for @unable_to_connect.
no setter
unsupported_question_type String
No description provided for @unsupported_question_type.
no setter
upload_file String
No description provided for @upload_file.
no setter
uploaded String
No description provided for @uploaded.
no setter
zip String
No description provided for @zip.
no setter
zip_required String
No description provided for @zip_required.
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.