localaze library

Classes

DefaultConfig
The default configuration that will be used to translate the keys if no configuration is provided
Localaze
Main class for managing translations in Flutter applications. This class provides access to translations and handles locale changes.
LocalazeDelegate
A LocalizationsDelegate for Localaze that handles initialization and locale changes. This delegate is responsible for loading and initializing the Localaze instance when the app starts or when the locale changes.
ParamModel
ParamModel class is used to define dynamic parameters for translations. Each parameter has a key that matches the placeholder in the translation string and a value that will replace that placeholder.
TranslationsConfig
Abstract class that defines the configuration for translations. This class provides the foundation for how translations are handled, including parameter patterns, supported languages, and translation structure.
Translator
Core translation class that handles string translations and parameter replacement. This class provides static methods for translating strings and replacing dynamic parameters.

Enums

TranslationsStructureEnum
Defines how the translations map is structured in the configuration. This affects how translations are stored and accessed internally.

Extensions

TrWithLocaleX on String
Extension on String that provides translation functionality with BuildContext support. This extension automatically gets the current locale from the context.
TrX on String
Extension on String that provides translation functionality. This extension allows you to easily translate strings using the configured translations.