Translations class

Translations — which key is on which screen, and a picture of it.

Two halves that have to agree on a name. In the app, a test hands indexTranslations('app') to whatever the catalog funnels its reads through; here, a catalog called app says where that catalog's files live. Neither half can produce an export alone — the run knows where a key appeared, only the files know which keys exist and what each locale says — which is why the files are declared rather than discovered. Guessing at a translations directory would be a claim about a project's layout that only the project can make.

Inheritance

Constructors

Translations({List<TranslationsPackage> packages = const [], String? label})

Properties

config → Map<String, Object?>
Per-instance configuration, handed to the GUI-side implementation. Must be JSON-encodable — it crosses a process boundary.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable and globally unique — flutterware.scenarios, acme.deploy. The GUI resolves its native implementation by this string.
finalinherited
label → String
What the sidebar row says. Defaults to the last dotted segment of id.
finalinherited
packages → List<TranslationsPackage>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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