• UIKit
  • SDK
  • RESTful API
Chat/
UIKit/
Flutter/
Features/
UIKit
  • Overview
    • TUIKit Introduction
    • Features Overview
    • Pricing
      • Billing Overview
      • Chat Monthly Package
      • Billing of Chat Out-of-Package Usage
  • Run Demo
  • Getting Started
  • Integration
    • Chat UIKit
    • Chat UIKit - Only Message
    • Secure authentication with UserSig
  • Features
    • Message Quotation
    • Emoji & Stickers
    • Message Reactions
    • Message Translation
    • Offline Push
    • Online Status
    • Integrating Offline Push
      • Manufacturer configuration
      • Quick Integration
      • Client APIs
  • Internationalization
  • Customization
    • Modifying UI Themes
    • Setting UI Styles
  • Changelog
  • Console Guide
    • New Console Introduction
    • Creating and Upgrading an Application
    • Basic Configuration
    • Feature Configuration
    • Account Management
    • Group Management
    • Webhook Configuration
    • Usage Statistics
    • Real-Time Monitor
    • Auxiliary Development Tools
  • Product Features
    • Message Management
      • One-to-One Message
      • Message Storage
      • Offline Push
      • Group Message
      • Message Formats
    • Account System
      • Login Authentication
      • Online Status Management
    • Group Related
      • Group System
      • Group Management
    • User Profile and Relationship Chain
      • Profile Management
      • Relationship Chain Management
  • Scenario-based Practice
    • AI Chatbot
    • Super Large Entertainment and Collaboration Community
    • Discord Implementation Guide
  • Push Service
    • Overview
    • Activate the Service
    • Quick Start
    • Manufacturer Channel
      • Manufacturer Configuration
        • Android
        • iOS
        • Flutter
        • React-Native
      • Quick Integration
        • Android
        • iOS
        • Flutter
        • React-Native
    • Statistics
    • Troubleshooting Tool
    • Client APIs
      • Android
      • iOS
      • Flutter
      • React Native
    • REST API
      • Pushing to All/Tagged Users
      • UserID-Targeted Push
      • Obtaining Application Attribute Names
      • Setting Application Attribute Names
      • Obtaining User Attributes
      • Setting User Attributes
      • Deleting User Attributes
      • Obtaining User Tags
      • Adding User Tags
      • Deleting User Tags
      • Deleting All User Tags
      • Recalling Push
    • Push Callback
      • All Users / Tags / UserID Push Callback
      • Other Push Callbacks
    • Advanced Features
      • Custom Definition Badge
      • Custom Definition Ringtone
      • Customized Icon
      • Custom Definition Click Redirect
      • Push Message Categorization
    • Release Notes
      • Android
      • iOS
      • Flutter
      • React Native
    • FAQS
  • Error Codes

Message Translation

Description

The text message translation feature allows you to manually long press a text message bubble in the message list after you enter the chat interface, and then click the Translate button in the pop-up menu to translate the text.
Note:
The text message translation feature is provided by a plugin. To use it, tencent_cloud_chat_text_translate needs to be integrated. It is supported by version 1.4.1 and later.
Text translation is a value-added paid feature, which is in the beta phase currently. You can contact us through the Telegram Technical Group to enable and experience the full feature.

Effect Display

The effect of integrating the translation plugin is shown below:
Mobile
Desktop
Without the translation plugin integrated, the Translate button is not displayed.
With the translation plugin integrated, the Translate button is displayed.
Text message translation effect







Without the translation plugin integrated, the Translate button is not displayed.
With the translation plugin integrated, the Translate button is displayed.
Text message translation effect











Feature Overview

Integrating Plugins

Starting from version 1.4.1, the translation feature is provided by the plugin tencent_cloud_chat_text_translate .
If you do not need the translation feature, simply do not integrate the plugin. The Translate button will not be displayed when you long press a text message.
If you need the translation feature, you must integrate tencent_cloud_chat_message and tencent_cloud_chat_text_translate. The Translate button will be displayed automatically when you long press a text message.
After tencent_cloud_chat_text_translate is integrated, you can also set the target language for translation. The default target language is the current language used by UIKit.
Note:
tencent_cloud_chat_text_translate is dependent on tencent_cloud_chat_message and cannot be integrated individually.
Only text messages and text type of quotes or replies are supported. Image, voice, video, file, emoji, and custom messages are not supported for translation.
Not all source languages can be translated into the set target language. For example, English can be translated into Hindi, but Chinese cannot be translated into Hindi. For translation languages supported currently, refer to Supported Text Translation Languages. If translation fails, consult this document to change the source or target language.

Usage

First, install the tencent_cloud_chat_text_translate plugin:
flutter pub add tencent_cloud_chat_text_translate
To enable the plugin, add the following code to the plugins list in initUIKit:
TencentCloudChatPluginItem( name: "textTranslate", pluginInstance: TencentCloudChatTextTranslate(), ),

Contact Us

If you have any questions about this feature, feel free to join the Telegram Technical Group, and obtain reliable technical support from it.


Ask the community!
Start technical discussions and get instant expert support!