public abstract class GoogleUtils extends Object
| Constructor and Description |
|---|
GoogleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Translation |
translate(String text,
String to)
翻译单个文本
|
static Translation |
translate(String text,
String from,
String to)
翻译单个文本
|
public static Translation translate(String text, String from, String to)
text - 文本from - 源语言to - 目标语言public static Translation translate(String text, String to)
text - 文本to - 目标语言Copyright © 2021. All rights reserved.