LocalizationTranslator class

Enhanced localization file translator with comprehensive error handling and configuration.

This class provides robust translation capabilities for multiple localization file formats (ARB, JSON, YAML, CSV, PO) with advanced features like retry logic, rate limiting, context-aware translation, and validation.

Constructors

LocalizationTranslator(TranslatorConfig _config)
Creates a LocalizationTranslator with the given config.

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

dispose() → void
Disposes of resources used by the translator.
generateForLanguage(String sourcePath, String targetLang, {bool overwrite = true}) Future<String>
Generates a translated localization file for the specified targetLang based on the sourcePath file.
generateMultipleLanguages(String sourcePath, List<String> targetLanguages, {bool overwrite = true}) Future<Map<String, String>>
Generates ARB files for multiple target languages.
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