What is Google Cloud Translation?
Google Cloud Translation is the API behind Google Translate. NewsLyfe uses it to translate news articles on the fly — directly in your browser or app. The free tier allows up to 500,000 characters per month, which is more than enough for casual daily use.
Quick Start
Translation works out of the box in NewsLyfe once you add your API key. Here's the fastest path to get it working:
Open Google Cloud Console
Go to console.cloud.google.com and sign in with your Google account.
Create or select a project
Click the project dropdown at the top. Select an existing project or click New Project. Give it a name (e.g. "NewsLyfe").
Enable the Translation API
In the left sidebar go to APIs & Services → Library. Search for "Cloud Translation API" and click Enable.
Create an API key
Go to APIs & Services → Credentials. Click Create Credentials → API Key. Copy the generated key.
Add the key to NewsLyfe
Open NewsLyfe Settings → Translation → Google Translate. Paste your API key and save.
Advanced Setup
Restrict your API key (Recommended)
By default, a new API key has no restrictions — it could be used by anyone who gets hold of it. It's strongly recommended to restrict your key to only the Translation API and to your domain.
Go to Credentials
In Google Cloud Console, go to APIs & Services → Credentials and click on your API key.
Set API restrictions
Under API restrictions, select Restrict key, then choose Cloud Translation API from the list.
Set HTTP referrer restriction (optional)
Under Application restrictions → HTTP referrers, add newslyfe.com/* to limit usage to your account only.
Pricing & Free Tier
No credit card required for the free tier. Resets monthly.
Only charged after exceeding the free 500K monthly limit.
Troubleshooting
Permission Denied
The Translation API isn't enabled for your project, or the API key is restricted incorrectly. Go to APIs & Services → Library and make sure Cloud Translation API is enabled.
Unauthorized / Invalid API Key
The API key is incorrect or has been deleted. Double-check the key in NewsLyfe Settings matches the one in your Google Cloud Console credentials.
Quota Exceeded
You've used your 500K free characters for the month. Translation will resume at the start of your next billing cycle, or you can set up billing to continue immediately.
Connection Error
NewsLyfe couldn't reach the Google API. Check your internet connection. If the issue persists, the Google API status page at status.cloud.google.com will show any ongoing outages.
API Key Security
Your API key is stored locally in your browser and is only sent to Google's servers for translation requests. NewsLyfe never stores or transmits your key to its own servers.