View Issue Details

IDProjectCategoryView StatusLast Update
3813Composrcorepublic2019-11-14 21:34
ReporterChris Graham Assigned ToGuest  
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary3813: Support Google Translate API v3
Descriptionhttps://cloud.google.com/translate/docs/intro-to-v3

They offer a free tier (I don't believe they did so before).
They provide support for defining terms... so we could provide some kind of editable master-list of terms that should not be translated.
TagsType: External dependency, Type: Internationalisation
Attach Tags
Time estimation (hours)8
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Relationships

related to 3540 Not AssignedGuest De-Googleificiation (idea staging issue) 
related to 264 ResolvedChris Graham Switch to Bing translate 

Activities

Chris Graham

2019-07-08 16:15

administrator   ~6027

Actually the free tier is a pain - you need to put in credit card information, and they'll charge you if you go over a threshold. You can probably put limits on your keys to avoid that, but I don't think we should expect any users to need to risk paying for stuff for inbuilt Composr functionality.

Better to consider integrating other translate APIs, here are the options I've found:
 - Microsoft (best choice IMO)
 - Yandex
 - IBM Watson (I don't trust it to continue to work reliably TBH, as it's translation API is a minor player)

Chris Graham

2019-07-08 16:28

administrator   ~6028

Currently the 'translation' v11 unit test is failing as our free Google API year expired.
I plan to fix that by making the Composr v11 translation API support multiple backends, using hooks, as I did for the weather API.
I'm not sure what we'll do with the Google part of it - probably I'll keep testing working by moving our API key onto a paid tier with low usage limits, so it doesn't trigger a fee.

Chris Graham

2019-07-30 01:58

administrator   ~6058

The v3 API requires 'service accounts', not API keys, making it more complex (asking anyone who's not a programmer to setup service accounts is too much IMO, especially because with API keys we can share a key across multiple APIs). It is also still in beta. So we can forget that for now at least.

Chris Graham

2019-07-30 17:22

administrator   ~6059

Bing Translator support is now added. So a user can choose between Google Translate, or Bing Translator.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2019-06-08 16:07 Chris Graham New Issue
2019-06-08 16:07 Chris Graham Tag Attached: Type: Internationalisation
2019-06-27 17:37 Chris Graham Tag Attached: Roadmap: v11
2019-06-27 17:38 Chris Graham Tag Attached: Type: External dependency
2019-07-08 16:15 Chris Graham Note Added: 0006027
2019-07-08 16:28 Chris Graham Note Added: 0006028
2019-07-30 01:58 Chris Graham Note Added: 0006058
2019-07-30 17:22 Chris Graham Tag Detached: Roadmap: v11
2019-07-30 17:22 Chris Graham Note Added: 0006059
2019-07-30 17:40 Chris Graham Relationship added related to 3540
2019-07-30 17:41 Chris Graham Relationship added related to 264