solvro_translator_core library
Classes
- AllFieldsTranslatable
- Annotation used to mark all fields in a class as translatable.
-
LocalTranslatableManager<
Local extends TranslationResults, Remote extends TranslationResults> - A manager that handles local storage and retrieval of translations.
- NonTranslatableField
- Annotation used to exclude a field from being translated.
-
RemoteTranslatableManager<
T extends TranslationResults> - A manager that handles remote translation operations.
-
SolvroTranslator<
Local extends TranslationResults, Remote extends TranslationResults> - A translator that handles text translation between different locales.
- Translatable
- Annotation used to mark a class as translatable.
- TranslatableField
- Annotation used to explicitly mark a field as translatable.
- TranslatableInterface
- Interface for classes that support translation.
- TranslatableJSONProperty
- Base class for defining translatable properties in JSON structures.
- TranslatableJSONPropertyString
- Represents a simple string property in JSON that can be translated.
- TranslatableNestedJSONObject
- Represents a nested JSON object that contains translatable properties.
- TranslatableNestedObjectList
- Represents a list of objects in JSON that contain translatable properties.
- TranslatableNestedStringList
- Represents a list of strings in JSON that can be translated.
- TranslationResults
- Interface that defines the structure for translation results.
Enums
- SolvroLocale
- Enum representing supported locales in the application.
Extensions
- TranslateX on T
- Extension on TranslatableInterface that provides translation functionality.
Constants
- allFieldsTranslatable → const AllFieldsTranslatable
- Convenience instance of AllFieldsTranslatable.
- nonTranslatableField → const NonTranslatableField
- Convenience instance of NonTranslatableField.
- translatable → const Translatable
- Convenience instance of Translatable with default settings.
- translatableField → const TranslatableField
- Convenience instance of TranslatableField.
Typedefs
-
ValidityCheck<
T extends TranslationResults> = bool Function(T translation) - A function type that validates if a translation is acceptable.