NmNetworkL10n class abstract

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

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

import 'generated/network_localizations.dart';

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

Constructors

NmNetworkL10n(String locale)

Properties

addSubscription → String
No description provided for @addSubscription.
no setter
allApps → String
No description provided for @allApps.
no setter
allServers → String
No description provided for @allServers.
no setter
autoSelect → String
No description provided for @autoSelect.
no setter
connectTooltip → String
No description provided for @connectTooltip.
no setter
disconnectTooltip → String
No description provided for @disconnectTooltip.
no setter
fastest → String
No description provided for @fastest.
no setter
hashCode → int
The hash code for this object.
no setterinherited
localeName → String
final
noServers → String
No description provided for @noServers.
no setter
pingUnknown → String
No description provided for @pingUnknown.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchApps → String
No description provided for @searchApps.
no setter
searchServers → String
No description provided for @searchServers.
no setter
selectedServer → String
No description provided for @selectedServer.
no setter
splitBypass → String
No description provided for @splitBypass.
no setter
splitOff → String
No description provided for @splitOff.
no setter
splitOffHint → String
No description provided for @splitOffHint.
no setter
splitOnly → String
No description provided for @splitOnly.
no setter
statDownload → String
No description provided for @statDownload.
no setter
stateConnected → String
No description provided for @stateConnected.
no setter
stateConnecting → String
No description provided for @stateConnecting.
no setter
stateDisconnected → String
No description provided for @stateDisconnected.
no setter
stateDisconnecting → String
No description provided for @stateDisconnecting.
no setter
statPing → String
No description provided for @statPing.
no setter
statUpload → String
No description provided for @statUpload.
no setter
yourLocation → String
No description provided for @yourLocation.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pingValue(int ms) → String
No description provided for @pingValue.
subscriptionServers(int count) → String
No description provided for @subscriptionServers.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) → NmNetworkL10n

Constants

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