TranslateYamlResults class

Represents the results of parsing a YAML file for translation options.

Constructors

TranslateYamlResults({required ModelProvider? modelProvider, required String? customModelProviderBaseUrl, required Model? model, required String? customModel, required String? apiKey, required String? vertexAiProjectUrl, required bool? disableSafety, required String? context, required List<String>? excludeLocales, required int? batchSize, required String? arbDir, required String? templateArbFile, required bool? useEscaping, required bool? relaxSyntax})
const
TranslateYamlResults.empty()
Creates an empty instance of TranslateYamlResults.
const

Properties

apiKey String?
The API key for translation.
final
arbDir String?
The directory containing the ARB files.
final
batchSize int?
The target number of characters of messages to send to a model in a single batch. The actual number can be higher if a single message is too large.
final
context String?
The context for translation.
final
customModel String?
The custom model for translation.
final
customModelProviderBaseUrl String?
The custom model provider base URL for translation.
final
disableSafety bool?
Indicates whether safety checks are disabled.
final
excludeLocales List<String>?
The list of locales to exclude from translation.
final
hashCode int
The hash code for this object.
no setterinherited
model Model?
The model for translation.
final
modelProvider ModelProvider?
The model provider for translation.
final
relaxSyntax bool?
Indicates whether relaxed syntax is used in messages.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templateArbFile String?
The template ARB file.
final
useEscaping bool?
Indicates whether escaping is used in messages.
final
vertexAiProjectUrl String?
The URL of the Vertex AI project.
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