在android studio中将所有文本视图翻译为其他语言

在android studio中将所有文本视图翻译为其他语言,android,azure,textview,translation,Android,Azure,Textview,Translation,我想通过从菜单中选择一种语言,将android应用程序的所有文本视图翻译成其他语言。有办法翻译吗? 我听说我们可以用微软的文本翻译软件翻译。但我不知道如何使用它。请帮帮我。是的!你可以用它来实现你的目标 高层工作如下: Azure Translator支持90种语言和方言。您可以参考此访问语言列表 如何使用: /translate?api-version=3.0&from=<SourceLang>&to=<TranslationLang> Ocp-A

我想通过从菜单中选择一种语言,将android应用程序的所有文本视图翻译成其他语言。有办法翻译吗?
我听说我们可以用微软的文本翻译软件翻译。但我不知道如何使用它。请帮帮我。

是的!你可以用它来实现你的目标

高层工作如下:

Azure Translator支持90种语言和方言。您可以参考此访问语言列表

如何使用:

/translate?api-version=3.0&from=<SourceLang>&to=<TranslationLang>
Ocp-Apim-Subscription-Key : <The Subscription Key you obtained>
Ocp-Apim-Subscription-Region : The Translator resource region which you would have provided while creating the resource.
第一步是获取订阅-如果您想先尝试,请使用以下链接:

第1步: 创建转换器资源:

步骤2 转到资源并获取API密钥

第三步: 您必须使用正文和标题点击端点,如下所述:

Url参数:

/translate?api-version=3.0&from=<SourceLang>&to=<TranslationLang>
Ocp-Apim-Subscription-Key : <The Subscription Key you obtained>
Ocp-Apim-Subscription-Region : The Translator resource region which you would have provided while creating the resource.
标题:

/translate?api-version=3.0&from=<SourceLang>&to=<TranslationLang>
Ocp-Apim-Subscription-Key : <The Subscription Key you obtained>
Ocp-Apim-Subscription-Region : The Translator resource region which you would have provided while creating the resource.
响应:

/translate?api-version=3.0&from=<SourceLang>&to=<TranslationLang>
Ocp-Apim-Subscription-Key : <The Subscription Key you obtained>
Ocp-Apim-Subscription-Region : The Translator resource region which you would have provided while creating the resource.
成功的响应如下所示:

[
    {
        "translations": [
            {
                "text": "Hallo Welt!",
                "to": "de"
            },
            {
                "text": "Salve, mondo!",
                "to": "it"
            }
        ]
    }
]
有关更多信息,请参阅此