[TTS][Template URL] Add support for translations.
Adds support for new Contextual Search Resolve-request parameters to provide translation hints from the client. The server uses these params as additional hints from the Chrome Language Model for the user's preferred language and the language of the selection and page content. This means the returned Search Term may be translated or be accompanied by a Translation Card. The parameters we send in the Resolve request are the same parameters we currently send to force a translation one-box in the Search request: "&tlitesl=" for source language and "&tlitetl=" for the target language. BUG=952401 Change-Id: Ia79d8c0cf3706009c2b6213895ad8f6df543c24c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032058 Commit-Queue: Donn Denman <donnd@chromium.org> Auto-Submit: Donn Denman <donnd@chromium.org> Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#737387}
Showing
Please register or sign in to comment