TranslateOptions class

Class representing the options for translation.

Constructors

TranslateOptions({required ModelProvider modelProvider, required Model model, required String? customModel, required String apiKey, required Uri? vertexAiProjectUrl, required Uri? customModelProviderBaseUrl, required bool? disableSafety, required String? context, required String arbDir, required String? templateArbFile, required List<String>? excludeLocales, required int batchSize, required bool? useEscaping, required bool? relaxSyntax})
const
TranslateOptions.resolve(FileSystem fileSystem, TranslateArgResults argResults, TranslateYamlResults yamlResults)
Factory method to resolve TranslateOptions from command line arguments and YAML configuration.
factory

Properties

apiKey String
final
arbDir String
final
batchSize int
final
context String?
final
customModel String?
final
customModelProviderBaseUrl Uri?
final
disableSafety bool
final
excludeLocales List<String>?
final
hashCode int
The hash code for this object.
no setterinherited
model Model
final
modelProvider ModelProvider
final
relaxSyntax bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templateArbFile String
final
useEscaping bool
final
vertexAiProjectUrl Uri?
final

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

Constants

arbDirKey → const String
maxContextLength → const int
relaxSyntaxKey → const String
templateArbFileKey → const String
useEscapingKey → const String