[EXCONTRANS-318] Google translator sends language country codes which trigger errors Created: 13/Nov/19 Updated: 24/Mar/20 Resolved: 24/Mar/20 |
|
| Status: | Resolved |
| Project: | Content Translation Extended (CTX) |
| Component/s: | Google Translator |
| Affects Version/s: | 3.0, 2.9 |
| Fix Version/s: | 2.9, 3.0.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Chris Jennings | Assignee: | Teresa Miyar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 5h | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Description |
|
Google Cloud Translate recognises a given set of languages but does not distinguish between county-specific dialects (indicated by an ISO 3166 two letter code) See: https://cloud.google.com/translate/docs/languages Our implementation of the translator includes these country codes (when configured in i18n config) and receives 400 (bad request) errors from Google. We should ignore these country codes when submitting translations so we get a "German" response whether requesting Swiss German or German as spoken in Germany. |