translateText method
翻译(5.0.8以后支持)
Implementation
Future<V2TimValueCallback<Map<String, String>>> translateText({
required List<String> texts,
required String targetLanguage,
String? sourceLanguage,
}) async {
return await TencentCloudChatSdkPlatform.instance.translateText(
texts: texts,
targetLanguage: targetLanguage,
sourceLanguage: sourceLanguage,
);
}