LocalizationProvider class abstract

Localization provider interface.

Implement this to provide translations for search indexing. The framework provides EasyLocalizationAdapterImpl for easy_localization and PreIndexedLocalizationProvider for pre-indexed translations.

Implementers

Constructors

LocalizationProvider()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isReady → bool
Check if the provider is ready to use.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportedLocales → List<Locale>
Get all supported locales.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
translate(String key, {required Locale locale}) → String
Translate a key to a specific locale.

Operators

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