I need to convert my dynamic website’s pages from English to French. For this I was using Google’s Translation API, but Google translate API is not returning the correct translation of the pages.
What should I to use to get 100% accurate results when translating pages from English to French?
Also give me suggestion if you have better options for this task instead of Google’s Translation API.
2
Answers
Use react-i18next with JSON files for static content and a CMS for dynamic content.
If it’s a dynamic site: you should do it where you change the content.
So let’s assume you have a CMS or a database where you store and manage the EN content. When you change this content you could send it to an online translation service, like deepl.com : and store the translation in your DB.
This will "cache" the translation in your own CMS, instead or relying on an ad hoc service like google translate.
If people want to use Google translate for that: the can do it themselves via: https://translate.google.com/?hl=nl&sl=auto&tl=en&op=websites
Till 2019, you could use a widget for that: https://www.weglot.com/blog/google-translate-widget