translateText method

Future<V2TimValueCallback<Map<String, String>>> translateText({
  1. required List<String> texts,
  2. required String targetLanguage,
  3. String? sourceLanguage,
})

翻译(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,
  );
}