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

Properties

aboutme → String
No description provided for @aboutme.
no setter
aiPlayground → String
No description provided for @aiPlayground.
no setter
books → String
No description provided for @books.
no setter
booksDescription → String
No description provided for @booksDescription.
no setter
cameraAddClass → String
Hint of the menu that adds a watched class.
no setter
cameraClasses → String
Heading on the Camera page above the watched object classes.
no setter
cameraClassesHelp → String
Help under the watched classes on the Camera page.
no setter
cameraClassesLocked → String
Shown instead of the class editor's help while ObservANT's privacy filter is on.
no setter
cameraDetection → String
No description provided for @cameraDetection.
no setter
cameraDevice → String
No description provided for @cameraDevice.
no setter
cameraFalseAlarm → String
Button under the camera preview: the boxed spots are no cat and are ignored from now on.
no setter
cameraFalseAlarmHelp → String
No description provided for @cameraFalseAlarmHelp.
no setter
cameraFrameRate → String
No description provided for @cameraFrameRate.
no setter
cameraInfo → String
No description provided for @cameraInfo.
no setter
cameraModelRuns → String
No description provided for @cameraModelRuns.
no setter
cameraName → String
No description provided for @cameraName.
no setter
cameraNotReachable → String
No description provided for @cameraNotReachable.
no setter
cameraOff → String
No description provided for @cameraOff.
no setter
cameraOn → String
No description provided for @cameraOn.
no setter
cameraPrivacy → String
Row of the camera info table: whether ObservANT pixelates all but the detected animals.
no setter
cameraPrivacyOff → String
Value of the privacy filter row when the filter is off.
no setter
cameraPrivacyPixelate → String
Value of the privacy filter row when privacy = "pixelate".
no setter
cameraProblem → String
No description provided for @cameraProblem.
no setter
cameraRecentDetections → String
Heading over the pictures of the latest arrivals on the Camera page.
no setter
cameraRecentDetectionsHelp → String
No description provided for @cameraRecentDetectionsHelp.
no setter
cameraResolution → String
No description provided for @cameraResolution.
no setter
cameraRetry → String
Button under the Camera page's not-reachable text that asks the camera again.
no setter
cameraRotateLeft → String
No description provided for @cameraRotateLeft.
no setter
cameraRotateRight → String
No description provided for @cameraRotateRight.
no setter
cameraRotation → String
No description provided for @cameraRotation.
no setter
cameraSave → String
No description provided for @cameraSave.
no setter
cameraSaved → String
No description provided for @cameraSaved.
no setter
cameraSaveFailed → String
No description provided for @cameraSaveFailed.
no setter
cameraSensitivity → String
No description provided for @cameraSensitivity.
no setter
cameraSensitivityHelp → String
No description provided for @cameraSensitivityHelp.
no setter
cameraSettingsNav → String
No description provided for @cameraSettingsNav.
no setter
cameraSettingsTitle → String
No description provided for @cameraSettingsTitle.
no setter
cameraSpotIgnored → String
Under a recent arrival whose spots are already ignored.
no setter
cameraVersion → String
Row of the camera info table: the ObservANT build.
no setter
cameraVisits → String
No description provided for @cameraVisits.
no setter
cameraWasFalseAlarm → String
Button under a recent arrival: its boxes become spots the camera ignores.
no setter
cameraWatchAgain → String
Button beside the ignored spots: forget them all.
no setter
data → String
No description provided for @data.
no setter
detectionArrivalVideo → String
No description provided for @detectionArrivalVideo.
no setter
detectionEarlierVideos → String
No description provided for @detectionEarlierVideos.
no setter
detectionFewerVisits → String
Button under the whole visit log: back to the three latest.
no setter
detectionLastArrival → String
No description provided for @detectionLastArrival.
no setter
detectionNotSeenYet → String
No description provided for @detectionNotSeenYet.
no setter
detectionTooDark → String
Status line on the Stream page while ObservANT's picture is black, as at night without IR.
no setter
devStats → String
Button on the Stream page that opens the panel of performance numbers.
no setter
devStatsBrowser → String
Stats row: what this browser plays.
no setter
devStatsCamera → String
Stats row: frames the camera delivers per second.
no setter
devStatsCpu → String
Stats row: ObservANT's CPU use and the system load.
no setter
devStatsMemory → String
Stats row: ObservANT's resident memory.
no setter
devStatsModel → String
Stats row: the model's time per run and its runs per second.
no setter
devStatsNone → String
The stats panel before any number arrived.
no setter
devStatsTemperature → String
Stats row: the board's CPU temperature.
no setter
devStatsUptime → String
Stats row: how long ObservANT has run.
no setter
devStatsViewers → String
Stats row: browser tabs on the stream.
no setter
films → String
No description provided for @films.
no setter
filmsDescription → String
No description provided for @filmsDescription.
no setter
follow → String
No description provided for @follow.
no setter
games → String
No description provided for @games.
no setter
gamesDescription → String
No description provided for @gamesDescription.
no setter
hashCode → int
The hash code for this object.
no setterinherited
homepage → String
No description provided for @homepage.
no setter
localeName → String
final
observantOthers → String
Heading over the other ObservANT cameras this one lists as peers.
no setter
observantPeerUnreachable → String
Under another ObservANT camera that does not answer this page.
no setter
observantPixelated → String
Under the camera name when its /healthz says privacy is pixelate.
no setter
quotations → String
No description provided for @quotations.
no setter
quotationsDescription → String
No description provided for @quotationsDescription.
no setter
renderingPlayground → String
No description provided for @renderingPlayground.
no setter
rerunSqliteHealthcheck → String
No description provided for @rerunSqliteHealthcheck.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sqliteError → String
No description provided for @sqliteError.
no setter
sqliteWebHint → String
No description provided for @sqliteWebHint.
no setter
stream → String
No description provided for @stream.
no setter
visitStats → String
Button on the Stream page that opens the visit statistics.
no setter
visitStatsPerDay → String
No description provided for @visitStatsPerDay.
no setter
visitStatsPerHour → String
No description provided for @visitStatsPerHour.
no setter
webrtcCameraGone → String
No description provided for @webrtcCameraGone.
no setter
webrtcConnecting → String
No description provided for @webrtcConnecting.
no setter
webrtcExchangingCandidates → String
No description provided for @webrtcExchangingCandidates.
no setter
webrtcFailed → String
No description provided for @webrtcFailed.
no setter
webrtcNegotiating → String
No description provided for @webrtcNegotiating.
no setter
webrtcNoCamera → String
No description provided for @webrtcNoCamera.
no setter
webrtcPeerError → String
No description provided for @webrtcPeerError.
no setter
webrtcPeerNotStarted → String
No description provided for @webrtcPeerNotStarted.
no setter
webrtcSeeConsole → String
No description provided for @webrtcSeeConsole.
no setter
webrtcStreaming → String
No description provided for @webrtcStreaming.
no setter
webrtcWaitingForCamera → String
No description provided for @webrtcWaitingForCamera.
no setter

Methods

cameraIgnoredSpots(int count) → String
How many spots were marked "not a cat"; they show grey over the preview.
cameraLastScore(int percent) → String
Under the detection slider: the best score of the last detection, real or false, to set the slider just above a false one.
cameraScoreValue(int percent) → String
Text under the detection sensitivity slider.
detectionAllVisits(int count) → String
Button under the three latest visits: shows the whole visit log.
detectionInView(String what) → String
Status line while something it watches is in view; what is the watched classes, e.g. "Cat" or "Cat / dog".
detectionLastSeen(String when) → String
No description provided for @detectionLastSeen.
detectionRecentVisits(String visits) → String
No description provided for @detectionRecentVisits.
detectionVideoFrom(String time) → String
What a screen reader says for an earlier video's play link.
detectionVisitStay(String time, String minutes) → String
No description provided for @detectionVisitStay.
devStatsBrowserValue(String fps, String size, String dropped) → String
Frames per second received, picture size, frames dropped so far.
devStatsCameraValue(String fps, String configured) → String
Measured frames per second of the configured rate.
devStatsCpuValue(String percent, String cores, String load) → String
Process CPU in percent of one core, the core count, the 1-minute load average.
devStatsModelValue(String ms, String rate) → String
Milliseconds per model run and runs per second.
devStatsUptimeValue(String hours, String minutes) → String
Uptime in hours and minutes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observantProblem(String problem) → String
Under the camera name when its /healthz says it is not ok; the problem is ObservANT's own English text.
observantUnreachable(String time) → String
Under the camera name once its /healthz stopped answering; time is when it stopped.
toString() → String
A string representation of this object.
inherited
visitStatsAverageStay(String minutes) → String
No description provided for @visitStatsAverageStay.
visitStatsNone(int days) → String
No description provided for @visitStatsNone.
visitStatsSummary(int today, int total, int days) → String
No description provided for @visitStatsSummary.
webrtcNoSession(String camera) → String
No description provided for @webrtcNoSession.
webrtcSignallingLost(int ms) → String
No description provided for @webrtcSignallingLost.

Operators

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

Static Methods

of(dynamic context) → AppLocalizations?

Constants

delegate → const dynamic
localizationsDelegates → const List
A list of this localizations delegate along with the default localizations delegates.
supportedLocales → const List
A list of this localizations delegate's supported locales.