FS#76268 - [chromium] Unable to trigger Google Translate
Attached to Project:
Arch Linux
Opened by Henry Francisco (fuhd) - Saturday, 22 October 2022, 20:06 GMT
Last edited by Evangelos Foutras (foutrelis) - Sunday, 23 October 2022, 06:54 GMT
Opened by Henry Francisco (fuhd) - Saturday, 22 October 2022, 20:06 GMT
Last edited by Evangelos Foutras (foutrelis) - Sunday, 23 October 2022, 06:54 GMT
|
Details
Description: The built-in Google Translate doesn't work even
if Google's API key is used.
It appears that the default language detection model "TFLite_v1" is unable to detect the language of the page, giving only "und". If the previous "CLD3" is chosen with command line option "--disable-features=TFLiteLanguageDetectionEnabled", the translation notification can be triggered. Additional info: * package version(s) chromium 106.0.5249.103-1 Steps to reproduce: 0. Set Google's API key in chromium-flags.conf 1. Launch a new English profile with LANG=en_US.UTF-8 chromium --user-data-dir=/tmp/<random> 2. Open chrome://translate-internals and open a random non-English website, eg. https://www.google.com/search?q=archlinux&hl=ar 3. Terminate this chromium. Run LANG=en_US.UTF-8 chromium --user-data-dir=/tmp/<random> --disable-features=TFLiteLanguageDetectionEnabled 4. Repeat the actions in Step 2. The translation bubble should appear. |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Sunday, 23 October 2022, 06:54 GMT
Reason for closing: Not a bug
Additional comments about closing: Our Chromium API key lack access to the Optimization Guide Service from which the required models are downloaded.
Sunday, 23 October 2022, 06:54 GMT
Reason for closing: Not a bug
Additional comments about closing: Our Chromium API key lack access to the Optimization Guide Service from which the required models are downloaded.
For the translate toolbar, however, you can set the key it uses to download the model with "--optimization-guide-service-api-key=<Chrome's_API_key>" in chromium-flags.conf.
For example, try the above with: https://stackoverflow.com/q/45353817
https://groups.google.com/a/chromium.org/g/chromium-packagers/c/GiZj37eZRg8