Functions
getSupportedLanguages
- getSupportedLanguages(): Promise<AsyncResult<TranslationTypes.SupportLanguage[]>>
Returns Promise<AsyncResult<TranslationTypes.SupportLanguage[]>>
translateMessage
- translateMessage(params: { languages: string[]; text: string }): Promise<AsyncResult<TranslationTypes.TranslationResult>>
Parameters
params: { languages: string[]; text: string }
languages: string[]
text: string
Returns Promise<AsyncResult<TranslationTypes.TranslationResult>>
获取翻译服务支持的语言。