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: src/writerai/resources/translation.py
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -65,15 +65,15 @@ def translate(
65
65
66
66
Args:
67
67
formality: Whether to use formal or informal language in the translation. See the
68
-
[list of languages that support formality](https://dev.writer.com/api-guides/api-reference/translation-api/language-support#formality).
68
+
[list of languages that support formality](https://dev.writer.com/api-reference/translation-api/language-support#formality).
69
69
If the language does not support formality, this parameter is ignored.
70
70
71
71
length_control: Whether to control the length of the translated text. See the
72
-
[list of languages that support length control](https://dev.writer.com/api-guides/api-reference/translation-api/language-support#length-control).
72
+
[list of languages that support length control](https://dev.writer.com/api-reference/translation-api/language-support#length-control).
73
73
If the language does not support length control, this parameter is ignored.
74
74
75
75
mask_profanity: Whether to mask profane words in the translated text. See the
76
-
[list of languages that do not support profanity masking](https://dev.writer.com/api-guides/api-reference/translation-api/language-support#profanity-masking).
76
+
[list of languages that do not support profanity masking](https://dev.writer.com/api-reference/translation-api/language-support#profanity-masking).
77
77
If the language does not support profanity masking, this parameter is ignored.
78
78
79
79
model: The model to use for translation.
@@ -84,15 +84,15 @@ def translate(
84
84
variant, the code appends the two-digit
85
85
[ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
86
86
For example, Mexican Spanish is `es-MX`. See the
87
-
[list of supported languages and language codes](https://dev.writer.com/api-guides/api-reference/translation-api/language-support).
87
+
[list of supported languages and language codes](https://dev.writer.com/api-reference/translation-api/language-support).
88
88
89
89
target_language_code: The [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes)
90
90
language code of the target language for the translation. For example, `en` for
91
91
English, `zh` for Chinese, `fr` for French, `es` for Spanish. If the language
92
92
has a variant, the code appends the two-digit
93
93
[ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
94
94
For example, Mexican Spanish is `es-MX`. See the
95
-
[list of supported languages and language codes](https://dev.writer.com/api-guides/api-reference/translation-api/language-support).
95
+
[list of supported languages and language codes](https://dev.writer.com/api-reference/translation-api/language-support).
96
96
97
97
text: The text to translate. Maximum of 100,000 words.
98
98
@@ -167,15 +167,15 @@ async def translate(
167
167
168
168
Args:
169
169
formality: Whether to use formal or informal language in the translation. See the
170
-
[list of languages that support formality](https://dev.writer.com/api-guides/api-reference/translation-api/language-support#formality).
170
+
[list of languages that support formality](https://dev.writer.com/api-reference/translation-api/language-support#formality).
171
171
If the language does not support formality, this parameter is ignored.
172
172
173
173
length_control: Whether to control the length of the translated text. See the
174
-
[list of languages that support length control](https://dev.writer.com/api-guides/api-reference/translation-api/language-support#length-control).
174
+
[list of languages that support length control](https://dev.writer.com/api-reference/translation-api/language-support#length-control).
175
175
If the language does not support length control, this parameter is ignored.
176
176
177
177
mask_profanity: Whether to mask profane words in the translated text. See the
178
-
[list of languages that do not support profanity masking](https://dev.writer.com/api-guides/api-reference/translation-api/language-support#profanity-masking).
178
+
[list of languages that do not support profanity masking](https://dev.writer.com/api-reference/translation-api/language-support#profanity-masking).
179
179
If the language does not support profanity masking, this parameter is ignored.
180
180
181
181
model: The model to use for translation.
@@ -186,15 +186,15 @@ async def translate(
186
186
variant, the code appends the two-digit
187
187
[ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
188
188
For example, Mexican Spanish is `es-MX`. See the
189
-
[list of supported languages and language codes](https://dev.writer.com/api-guides/api-reference/translation-api/language-support).
189
+
[list of supported languages and language codes](https://dev.writer.com/api-reference/translation-api/language-support).
190
190
191
191
target_language_code: The [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes)
192
192
language code of the target language for the translation. For example, `en` for
193
193
English, `zh` for Chinese, `fr` for French, `es` for Spanish. If the language
194
194
has a variant, the code appends the two-digit
195
195
[ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
196
196
For example, Mexican Spanish is `es-MX`. See the
197
-
[list of supported languages and language codes](https://dev.writer.com/api-guides/api-reference/translation-api/language-support).
197
+
[list of supported languages and language codes](https://dev.writer.com/api-reference/translation-api/language-support).
198
198
199
199
text: The text to translate. Maximum of 100,000 words.
0 commit comments