Google Translate API also translate input text with data (DD-MM-YYYY) into format target language

169 views
Skip to first unread message

Matteo Mason

unread,
Oct 4, 2018, 10:15:17 AM10/4/18
to Google Cloud Translation API
Hi all,
in my web site I add Google translate API. Everything works well, but I have a problem.

If in the text I want to translate a date in format (DD-MM-YYYY) is present, the API will translate also that date in the format of the target language.

Is there a solution for not to translate the date or numbers?

Thanks.

Jordan (Cloud Platform Support)

unread,
Oct 4, 2018, 4:49:40 PM10/4/18
to Google Cloud Translation API
As seen directly in the REST API there are currently no options to selectively skip translations for sections of text. This issue instead looks to be a possible improvement that should be made on the Translation API´s model. 

You can train the model by providing your feedback directly in the translation website when a translation is incorrect. You can also open a Public Issue Tracker report with full examples showing the incorrect translations and what they should be, in order to notify the Translation team. 
Reply all
Reply to author
Forward
0 new messages