Options
All
  • Public
  • Public/Protected
  • All
Menu

Translation contains the APIs for translation operations.

Index

Functions

getSupportedLanguages

translateMessage

  • 翻译消息。

    connection.translateMessage('hello', 'zh')
    

    Parameters

    • params: { languages: string[]; text: string }
      • languages: string[]

        要翻译的目标语言代码列表。

      • text: string

        要翻译的文本。

    Returns Promise<AsyncResult<TranslationResult>>

Generated using TypeDoc