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.
read-only
- configFile ↔ String
-
Yaml file used to configure Translator.
read / write
- helpMessage → String
-
Generic help message linking to package usage guide.
read-only
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 inl10n.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 ofl10n.yaml
.