DataleonLocalizations class

Lightweight i18n for the Dataleon KYC SDK.

Translations are stored as nested maps keyed by language code. Use t to look up a dot-separated path, e.g. t('fr', 'intro.startVerification').

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

customDocLabel(String lang, Map<String, dynamic> doc) String
Custom document display name based on language. Follows React priority as closely as possible: selected option/label translation → displayNameFR/EN → name → translated labelKey / documentListType / workspaceSettings fallback → key.
enrichCustomDoc(Map<String, dynamic> doc, List propertiesValidators) Map<String, dynamic>
Enrich a custom document with properties_validators and standard doc info. Returns a new map with merged fields (like React's enrichedCustomDocuments).
t(String lang, String key, {String? fallback, Map<String, String>? params}) String
Look up a translation by lang and dot-separated key. Returns fallback (or the key itself) when not found.

Constants

standardDocLabelKeys → const Map<String, String>
Standard document type mapping: value → labelKey (for enrichment)