translate static method
Execute an async translation
Implementation
static Future<String> translate(String text,
{bool cache = true,
String? startingLanguage,
String? targetLanguage,
bool returnJSON = false}) async {
return await _lock.synchronized(() async {
return await _executeTranslate(text,
cache: cache,
startingLanguage: startingLanguage,
targetLanguage: targetLanguage,
returnJSON: returnJSON);
});
}