Translates multiple texts in batch.
Array of texts to translate
Object containing source and target languages
A promise that resolves to an array of translated texts or null in case of an error
Detects the language of a given text.
The text whose language needs to be detected
A promise that resolves to the detected language or null in case of an error
Translates a single piece of text to the target language.
The text to translate
Object containing source and target languages
A promise that resolves to the translated text or null in case of an error
StaticquickQuick translation for a single piece of text. This method does not require an instance of the class.
The translated text or undefined if an error occurs
The Translate class allows you to interact with the translation API. You can translate individual text, batch translate multiple texts, and detect the language of a given text.