Class Translation (2.94.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclassTranslationimplementsSerializable
Information about a translation. Objects of this class contain the translated text and the source
language's code. The source language's code can be optionally specified by the user or
automatically detected by the Google Translation service.
See Also: Translating Text
Returns the language code of the source text. If no source language was provided this value is
the source language as detected by the Google Translation service.