ArbTranslator class
Enhanced ARB file translator with comprehensive error handling and configuration.
This class provides robust translation capabilities for ARB (Application Resource Bundle) files with advanced features like retry logic, rate limiting, and validation.
Constructors
- ArbTranslator(TranslatorConfig _config)
-
Creates an ArbTranslator 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.
-
generateArbForLanguage(
String sourcePath, String targetLang, {bool overwrite = true}) → Future< String> -
Generates a translated ARB file for the specified
targetLang
based on thesourcePath
ARB 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