简体   繁体   English

寻找如何使用 React i18n 的确认

[英]Looking for confirmation of how to use React i18n

I am researching options for integrating language translation into a web app.我正在研究将语言翻译集成到网络应用程序的选项。 I am comparing Google Translations API and React i18n right now, and it seems like i18n requires you to manually add all translations yourself - as in getting ahold of the translation for every page and adding that into the json data for the translation file.我现在正在比较 Google Translations API 和 React i18n,似乎 i18n 要求您自己手动添加所有翻译 - 就像获取每个页面的翻译并将其添加到翻译文件的 json 数据中一样。

I am just looking for confirmation that that is the way i18n works, and that I am not misunderstanding anything.我只是想确认这是 i18n 的工作方式,并且我没有误解任何事情。

I was actually able to answer my own question.我实际上能够回答我自己的问题。 In case anyone else has the same question, the answer is yes: it does require manual translation for the entire site.如果其他人有同样的问题,答案是肯定的:它确实需要对整个站点进行手动翻译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM