将混合语言翻译成单语言

发布于 2025-02-10 05:33:42 字数 114 浏览 2 评论 0原文

我想允许用户以其首选的语言查看混合语言评论的列表(即英语十个)。我只能让Google翻译以将列表翻译成西班牙语。如何使用Google翻译将西班牙语输入转换为英语?当我选择“英语”时,它只是向我展示了原始的混合输入。

I would like to allow users to view a list of mixed-language comments (ie ten in English and four in Spanish) in their preferred language. I am only able to get Google Translate to translate the list to Spanish. How do I use Google Translate to translate the Spanish inputs to English? When I select "English" it just shows me the original mixed inputs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回眸一遍 2025-02-17 05:33:42

我的错误。我恢复了W3C示例代码,并且按照我的意图起作用。

My mistake. I reverted to W3C example code and it worked as I had intended.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文