Bug 2209275

Summary: Chromium doesn't support web page translation
Product: [Fedora] Fedora Reporter: prasun.gera
Component: chromiumAssignee: Tom "spot" Callaway <spotrh>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: spotrh, than, tpopela, yaneti
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://www.1point3acres.com/bbs/
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-14 10:46:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description prasun.gera 2023-05-23 10:08:53 UTC
Fedora's build of chromium does not support web page translation via google's cloud translation API. I recall that there were changes around usage of google's APIs that disabled certain features in the default distribution. However, I am using my own developer API keys in .bash_profile by way of exporting GOOGLE_API_KEY, GOOGLE_DEFAULT_CLIENT_ID, and GOOGLE_DEFAULT_CLIENT_SECRET. This seems to work partially, and it shows options for cloud sync and safe browsing in chromium. Translation features do not work though. Ubuntu's snap version of chromium supports translation and it picks up the keys from the exported env variables. I confirmed this by installing the snap. So perhaps there is some build config difference ?

Reproducible: Always

Steps to Reproduce:
1. Visit https://www.1point3acres.com/bbs/
2. Expectation: Tooltip in the address bar that offers to translate the page
3. Chrome as well as Canonical's snap build of chromium show this when the API keys are exported. Fedora's rpm build does not.

Comment 1 Than Ngo 2023-07-14 10:46:07 UTC
I cannot reproduce this issue with latest chromium-114.0.5735.198. Please update to new version.

Comment 2 prasun.gera 2023-07-14 14:50:10 UTC
I am still able to reproduce it on current version. How did you verify that it works ? Do you have a sample website to check ?

Comment 3 prasun.gera 2023-07-14 15:00:30 UTC
Here's another website that I just tried: https://www.ledevoir.com/ . I see the tooltip in chrome but not in chromium.