MyMemoryTranslate class

A simple API to communicate with the MyMemory translation API.

The API spec can be found here.

Constructors

MyMemoryTranslate.new(Client _httpClient, {String? key, String? email})

Properties

email String?
The email to use to get 50,000 characters per day instead of the default 5,000. Any valid email will work.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
key String?
A unique key generated from your username and password by using the generateKey function. You can use it to access your private glossary, by utilizing the translate, setTranslation, and importTranslations functions.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateKey(String username, String password) Future<String>
Generates a key using a username and password.
getImportStatus(String uuid) Future<ImportResponseData>
Gets the current import status of a TM import with the given uuid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setTranslation(String source, String target, String from, String to, {bool private = false}) Future<String>
Set the translated text from the source, to the target.
toString() String
A string representation of this object.
inherited
translate(String text, String from, String to, {bool useMachineTranslation = true, bool private = false, String? ip}) Future<TranslationResponse>
Gets the translated text input from one language to another.

Operators

operator ==(Object other) bool
The equality operator.
inherited