You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,12 @@ And use:
156
156
$tr->setTokenProvider(new MyTokenGenerator);
157
157
```
158
158
159
+
### Translation Client (Quality)
160
+
161
+
Google Translate has a parameter named `client` which defines quality of translation. First it was set to `webapp` but later google added `gtx` value which results in a better translation quality in terms of grammar and overall meaning of sentences.
162
+
163
+
You can use `->setClient()` method to switch between clients. For example if you want to use older version of translation algorithm, type `$tr->setClient('webapp')->translate('lorem ipsum...')`. Default value is `gtx`.
164
+
159
165
### Errors and Exception Handling
160
166
161
167
Static method `trans()` and non-static `translate()` and `getResponse()` will throw following Exceptions:
0 commit comments