auto_translator library

Classes

Translator
Translates ARB template file according to options set in _config.

Properties

config Map<String, dynamic>
Converts Yaml file to a Map.
no setter
configFile String
Yaml file used to configure Translator.
getter/setter pair
helpMessage String
Generic help message linking to package usage guide.
no setter

Functions

runWithArguments(List<String> arguments) Future<void>
Parses arguments from command line, providing help or running Translator.

Exceptions / Errors

ConfigNotFoundException
Thrown when translator section is not found in l10n.yaml.
CustomException
Base class for Auto Translator Exceptions.
GoogleTranslateException
Thrown when an eror occurs communicating with Google Cloud Translate.
InvalidFormatException
Thrown when opening or closing curly braces are missing from a String in the template ARB file.
NoTargetsProvidedException
Thrown when no target languages are provided in the translator section of l10n.yaml.