Skip to content

Commit

Permalink
Fix bug 1501088: Use text format for Google Translate (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Oct 26, 2018
1 parent 0050a1d commit fe85f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pontoon/machinery/tests/test_views.py
Expand Up @@ -115,6 +115,7 @@ def test_view_google_translate(client, google_translate_locale, google_translate
'q': ['text'],
'source': ['en'],
'target': ['bg'],
'format': ['text'],
'key': ['2fffff'],
}
)
Expand Down
1 change: 1 addition & 0 deletions pontoon/machinery/views.py
Expand Up @@ -160,6 +160,7 @@ def google_translate(request):
'q': text,
'source': 'en',
'target': locale_code,
'format': 'text',
'key': api_key,
}

Expand Down

0 comments on commit fe85f6a

Please sign in to comment.