OpenIoTHubCommonLocalizations class abstract

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

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

import 'generated/openiothub_common_localizations.dart';

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

Implementers

Properties

account_and_safety String
No description provided for @account_and_safety.
no setter
activate_front_desk_service String
No description provided for @activate_front_desk_service.
no setter
add String
No description provided for @add.
no setter
add_gateway_success String
No description provided for @add_gateway_success.
no setter
add_self_hosted_server String
No description provided for @add_self_hosted_server.
no setter
add_server String
No description provided for @add_server.
no setter
add_to_server String
No description provided for @add_to_server.
no setter
agree String
No description provided for @agree.
no setter
agree_to_the_user_agreement1 String
No description provided for @agree_to_the_user_agreement1.
no setter
agree_to_the_user_agreement2 String
No description provided for @agree_to_the_user_agreement2.
no setter
airkiss_device_wifi_config_success String
No description provided for @airkiss_device_wifi_config_success.
no setter
app_info String
No description provided for @app_info.
no setter
app_name String
No description provided for @app_name.
no setter
app_title String
No description provided for @app_title.
no setter
as_a_gateway String
No description provided for @as_a_gateway.
no setter
as_a_gateway_description1 String
No description provided for @as_a_gateway_description1.
no setter
as_config_file String
No description provided for @as_config_file.
no setter
bind_wechat String
No description provided for @bind_wechat.
no setter
bind_wechat_failed String
No description provided for @bind_wechat_failed.
no setter
bind_wechat_success String
No description provided for @bind_wechat_success.
no setter
cancel String
No description provided for @cancel.
no setter
cancel_account String
No description provided for @cancel_account.
no setter
cancel_account_failed String
No description provided for @cancel_account_failed.
no setter
cancel_account_success String
No description provided for @cancel_account_success.
no setter
cancel_my_account String
No description provided for @cancel_my_account.
no setter
cancel_my_account_notify1 String
No description provided for @cancel_my_account_notify1.
no setter
change_gateway_id String
No description provided for @change_gateway_id.
no setter
click_to_get_wifi_info String
No description provided for @click_to_get_wifi_info.
no setter
confirm_cancel_account String
No description provided for @confirm_cancel_account.
no setter
confirm_modify String
No description provided for @confirm_modify.
no setter
connecting_to_router String
No description provided for @connecting_to_router.
no setter
current_account_password String
No description provided for @current_account_password.
no setter
define_description String
No description provided for @define_description.
no setter
define_server_addr String
No description provided for @define_server_addr.
no setter
define_server_ip_or_domain String
No description provided for @define_server_ip_or_domain.
no setter
define_server_kcp_port String
No description provided for @define_server_kcp_port.
no setter
define_server_key String
No description provided for @define_server_key.
no setter
define_server_name String
No description provided for @define_server_name.
no setter
define_server_tcp_port String
No description provided for @define_server_tcp_port.
no setter
delete_success String
No description provided for @delete_success.
no setter
description String
No description provided for @description.
no setter
device_wifi_config String
No description provided for @device_wifi_config.
no setter
discovering_device_please_wait String
No description provided for @discovering_device_please_wait.
no setter
exit String
No description provided for @exit.
no setter
feedback_channels String
No description provided for @feedback_channels.
no setter
find_local_gateway_list String
No description provided for @find_local_gateway_list.
no setter
for_everyone_to_use String
No description provided for @for_everyone_to_use.
no setter
gateway_install_guide String
No description provided for @gateway_install_guide.
no setter
gateway_install_guide_content1 String
No description provided for @gateway_install_guide_content1.
no setter
gateway_install_guide_content10 String
No description provided for @gateway_install_guide_content10.
no setter
gateway_install_guide_content2 String
No description provided for @gateway_install_guide_content2.
no setter
gateway_install_guide_content3 String
No description provided for @gateway_install_guide_content3.
no setter
gateway_install_guide_content4 String
No description provided for @gateway_install_guide_content4.
no setter
gateway_install_guide_content5 String
No description provided for @gateway_install_guide_content5.
no setter
gateway_install_guide_content6 String
No description provided for @gateway_install_guide_content6.
no setter
gateway_install_guide_content7 String
No description provided for @gateway_install_guide_content7.
no setter
gateway_install_guide_content8 String
No description provided for @gateway_install_guide_content8.
no setter
gateway_install_guide_content9 String
No description provided for @gateway_install_guide_content9.
no setter
get_wechat_login_info_failed String
No description provided for @get_wechat_login_info_failed.
no setter
get_wechat_qr_code_failed String
No description provided for @get_wechat_qr_code_failed.
no setter
go_to_main_menu String
No description provided for @go_to_main_menu.
no setter
grpc_server_addr String
No description provided for @grpc_server_addr.
no setter
grpc_server_ip_or_domain String
No description provided for @grpc_server_ip_or_domain.
no setter
grpc_service_port String
No description provided for @grpc_service_port.
no setter
hashCode int
The hash code for this object.
no setterinherited
icp_number String
No description provided for @icp_number.
no setter
input_grpc_service_port String
No description provided for @input_grpc_service_port.
no setter
input_iot_manager_addr String
No description provided for @input_iot_manager_addr.
no setter
input_wifi_password String
No description provided for @input_wifi_password.
no setter
iot_manager_addr String
No description provided for @iot_manager_addr.
no setter
localeName String
final
location_req_desc String
No description provided for @location_req_desc.
no setter
location_req_name String
No description provided for @location_req_name.
no setter
login String
No description provided for @login.
no setter
login_after_wechat_bind String
No description provided for @login_after_wechat_bind.
no setter
login_failed String
No description provided for @login_failed.
no setter
logout String
No description provided for @logout.
no setter
manually_create_a_gateway String
No description provided for @manually_create_a_gateway.
no setter
manually_create_a_gateway_description1 String
No description provided for @manually_create_a_gateway_description1.
no setter
manually_create_a_gateway_description2 String
No description provided for @manually_create_a_gateway_description2.
no setter
manually_create_a_gateway_description3 String
No description provided for @manually_create_a_gateway_description3.
no setter
mobile_number String
No description provided for @mobile_number.
no setter
modify String
No description provided for @modify.
no setter
modify_password String
No description provided for @modify_password.
no setter
my_server_description String
No description provided for @my_server_description.
no setter
my_server_description_example String
No description provided for @my_server_description_example.
no setter
name String
No description provided for @name.
no setter
new_value String
No description provided for @new_value.
no setter
no_wechat_installed String
No description provided for @no_wechat_installed.
no setter
ok String
No description provided for @ok.
no setter
online_feedback String
No description provided for @online_feedback.
no setter
openiothub_gateway_share String
No description provided for @openiothub_gateway_share.
no setter
openiothub_gateway_share_description String
No description provided for @openiothub_gateway_share_description.
no setter
operation_cannot_be_restored String
No description provided for @operation_cannot_be_restored.
no setter
package_name String
No description provided for @package_name.
no setter
password String
No description provided for @password.
no setter
paste_info String
No description provided for @paste_info.
no setter
please_input_2p4g_wifi_password String
No description provided for @please_input_2p4g_wifi_password.
no setter
please_input_mobile String
No description provided for @please_input_mobile.
no setter
please_input_new_value String
No description provided for @please_input_new_value.
no setter
please_input_password String
No description provided for @please_input_password.
no setter
please_input_your_password String
No description provided for @please_input_your_password.
no setter
port String
No description provided for @port.
no setter
privacy_policy String
No description provided for @privacy_policy.
no setter
register String
No description provided for @register.
no setter
register_failed String
No description provided for @register_failed.
no setter
register_success String
No description provided for @register_success.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
select_where_to_share String
No description provided for @select_where_to_share.
no setter
server_go_addr_example String
No description provided for @server_go_addr_example.
no setter
server_info String
No description provided for @server_info.
no setter
server_uuid String
No description provided for @server_uuid.
no setter
share String
No description provided for @share.
no setter
share_app_description String
No description provided for @share_app_description.
no setter
share_app_title String
No description provided for @share_app_title.
no setter
share_failed String
No description provided for @share_failed.
no setter
share_on_moments String
No description provided for @share_on_moments.
no setter
share_success String
No description provided for @share_success.
no setter
share_to_wechat String
No description provided for @share_to_wechat.
no setter
share_to_where String
No description provided for @share_to_where.
no setter
start_adding_surrounding_smart_devices String
No description provided for @start_adding_surrounding_smart_devices.
no setter
success String
No description provided for @success.
no setter
unbind_wechat String
No description provided for @unbind_wechat.
no setter
unbind_wechat_failed_reason String
No description provided for @unbind_wechat_failed_reason.
no setter
unbind_wechat_success String
No description provided for @unbind_wechat_success.
no setter
update_success String
No description provided for @update_success.
no setter
user_email String
No description provided for @user_email.
no setter
user_info String
No description provided for @user_info.
no setter
user_mobile String
No description provided for @user_mobile.
no setter
user_registration String
No description provided for @user_registration.
no setter
username String
No description provided for @username.
no setter
username_and_password_cant_be_empty String
No description provided for @username_and_password_cant_be_empty.
no setter
version String
No description provided for @version.
no setter
version_sn String
No description provided for @version_sn.
no setter
wechat_fast_login_failed String
No description provided for @wechat_fast_login_failed.
no setter
wechat_login_failed String
No description provided for @wechat_login_failed.
no setter
wechat_not_installed String
No description provided for @wechat_not_installed.
no setter
wechat_scan_qr_code_to_login String
No description provided for @wechat_scan_qr_code_to_login.
no setter
wifi_info_cant_be_empty String
No description provided for @wifi_info_cant_be_empty.
no setter
wifi_ssid String
No description provided for @wifi_ssid.
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) OpenIoTHubCommonLocalizations

Constants

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