TranslateLocale class

A class responsible for initializing and managing the current locale.

It provides a static method initialize to set the current locale based on the BuildContext provided.

Example usage:

TranslateLocale.initialize(context);

Constructors

TranslateLocale()

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 Properties

locale Localize
The current locale.
getter/setter pair

Static Methods

initialize(BuildContext context) → void
Initializes the TranslateLocale with the current BuildContext.