NsgControlsLocalizations class abstract

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

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

import 'localization/nsg_controls_localizations.dart';

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

Implementers

Constructors

NsgControlsLocalizations.new(String locale)

Properties

add_photo String
No description provided for @add_photo.
no setter
add_photos String
No description provided for @add_photos.
no setter
are_you_sure String
No description provided for @are_you_sure.
no setter
camera String
No description provided for @camera.
no setter
cancel String
No description provided for @cancel.
no setter
confirm String
No description provided for @confirm.
no setter
continue_editing String
No description provided for @continue_editing.
no setter
day String
No description provided for @day.
no setter
delete_photo_warning String
No description provided for @delete_photo_warning.
no setter
delete_photos String
No description provided for @delete_photos.
no setter
discardAndExit String
No description provided for @discardAndExit.
no setter
empty_list String
No description provided for @empty_list.
no setter
enter_time String
No description provided for @enter_time.
no setter
error String
No description provided for @error.
no setter
error_file_download String
No description provided for @error_file_download.
no setter
exitWithoutSaving String
No description provided for @exitWithoutSaving.
no setter
failed_download String
No description provided for @failed_download.
no setter
failed_download_try_again String
No description provided for @failed_download_try_again.
no setter
No description provided for @gallery.
no setter
hashCode int
The hash code for this object.
no setterinherited
loading String
No description provided for @loading.
no setter
localeName String
final
month String
No description provided for @month.
no setter
need_confirmation String
No description provided for @need_confirmation.
no setter
no_options_available String
No description provided for @no_options_available.
no setter
not_an_image_file String
No description provided for @not_an_image_file.
no setter
ok String
No description provided for @ok.
no setter
path_error String
No description provided for @path_error.
no setter
period String
No description provided for @period.
no setter
prepare_photo String
No description provided for @prepare_photo.
no setter
quarter String
No description provided for @quarter.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
save_file String
No description provided for @save_file.
no setter
save_files String
No description provided for @save_files.
no setter
save_photo String
No description provided for @save_photo.
no setter
save_photos String
No description provided for @save_photos.
no setter
saveChangesOption String
No description provided for @saveChangesOption.
no setter
saveChangesPrompt String
No description provided for @saveChangesPrompt.
no setter
No description provided for @search.
no setter
select_date String
No description provided for @select_date.
no setter
select_period String
No description provided for @select_period.
no setter
text_filter String
No description provided for @text_filter.
no setter
text_filter_unchanged String
No description provided for @text_filter_unchanged.
no setter
tima String
No description provided for @tima.
no setter
time String
No description provided for @time.
no setter
today String
No description provided for @today.
no setter
unsupported_format String
No description provided for @unsupported_format.
no setter
upload_photo String
No description provided for @upload_photo.
no setter
view_files String
No description provided for @view_files.
no setter
view_photo String
No description provided for @view_photo.
no setter
week String
No description provided for @week.
no setter
year String
No description provided for @year.
no setter

Methods

file_size_exceeded(Object fileMaxSize) String
No description provided for @file_size_exceeded.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
photos_added(Object c) String
No description provided for @photos_added.
No description provided for @there_are_count_elements_more_use_search.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) NsgControlsLocalizations?

Constants

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