NmAiL10n class abstract

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

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

import 'generated/ai_localizations.dart';

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

Constructors

NmAiL10n(String locale)

Properties

agentEarlier → String
No description provided for @agentEarlier.
no setter
agentEmpty → String
No description provided for @agentEmpty.
no setter
agentLauncherHint → String
No description provided for @agentLauncherHint.
no setter
agentStop → String
No description provided for @agentStop.
no setter
agentTaskHint → String
No description provided for @agentTaskHint.
no setter
agentThinking → String
No description provided for @agentThinking.
no setter
agentTitle → String
No description provided for @agentTitle.
no setter
approvalConfirm → String
No description provided for @approvalConfirm.
no setter
approvalReject → String
No description provided for @approvalReject.
no setter
approvalTitle → String
No description provided for @approvalTitle.
no setter
autonomyAdvisor → String
No description provided for @autonomyAdvisor.
no setter
autonomyAdvisorDescription → String
No description provided for @autonomyAdvisorDescription.
no setter
autonomyAutopilot → String
No description provided for @autonomyAutopilot.
no setter
autonomyAutopilotDescription → String
No description provided for @autonomyAutopilotDescription.
no setter
autonomyPilot → String
No description provided for @autonomyPilot.
no setter
autonomyPilotFreeDescription → String
No description provided for @autonomyPilotFreeDescription.
no setter
chatAttach → String
No description provided for @chatAttach.
no setter
chatMessageHint → String
No description provided for @chatMessageHint.
no setter
chatNow → String
No description provided for @chatNow.
no setter
chatSend → String
No description provided for @chatSend.
no setter
chatToday → String
No description provided for @chatToday.
no setter
copilotFailed → String
No description provided for @copilotFailed.
no setter
copilotHighlight → String
No description provided for @copilotHighlight.
no setter
copilotHint → String
No description provided for @copilotHint.
no setter
copilotRecent → String
No description provided for @copilotRecent.
no setter
copilotSend → String
No description provided for @copilotSend.
no setter
copilotTitle → String
No description provided for @copilotTitle.
no setter
copilotTryAsking → String
No description provided for @copilotTryAsking.
no setter
copilotVoice → String
No description provided for @copilotVoice.
no setter
decisionAuto → String
No description provided for @decisionAuto.
no setter
decisionAutoHeading → String
No description provided for @decisionAutoHeading.
no setter
decisionConfirmed → String
No description provided for @decisionConfirmed.
no setter
decisionDeclined → String
No description provided for @decisionDeclined.
no setter
decisionExpired → String
No description provided for @decisionExpired.
no setter
decisionFailed → String
No description provided for @decisionFailed.
no setter
decisionPostponed → String
No description provided for @decisionPostponed.
no setter
hashCode → int
The hash code for this object.
no setterinherited
localeName → String
final
offerAccept → String
No description provided for @offerAccept.
no setter
offerDecline → String
No description provided for @offerDecline.
no setter
offerTitle → String
No description provided for @offerTitle.
no setter
promptHint → String
No description provided for @promptHint.
no setter
promptSubmit → String
No description provided for @promptSubmit.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stepDone → String
No description provided for @stepDone.
no setter
stepFailed → String
No description provided for @stepFailed.
no setter
stepQueued → String
No description provided for @stepQueued.
no setter
stepRunning → String
No description provided for @stepRunning.
no setter
stepsTitle → String
No description provided for @stepsTitle.
no setter
turnCancelled → String
No description provided for @turnCancelled.
no setter

Methods

approvalCost(String cost) → String
No description provided for @approvalCost.
autonomyPilotDescription(String limit) → String
No description provided for @autonomyPilotDescription.
copilotMatches(int count) → String
No description provided for @copilotMatches.
loupeConfidence(String percent) → String
No description provided for @loupeConfidence.
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) → NmAiL10n

Constants

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