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
{{ message }}
Repository navigation
Commit 7ebbf87
Browse filesBrowse the repository at this point in the historyBrowse files
Generate the language docs from /v3/languages (#395)
Replace the hand-maintained language lists with generators that render
them from the live GET /v3/languages response: the supported-languages
table (snippets/language-table.jsx), the Voice support matrix and
input/target lists, and the style-rules callout on the
supported-languages page. Generated content sits between BEGIN/END
GENERATED markers; everything outside them stays hand-written.
node scripts/update-language-docs.mjs <api-key> runs every generator;
each script also runs standalone and supports --dry-run. Shared
plumbing lives in scripts/lib.mjs with zero-dependency unit tests
(node --test, wired up in CI via test-scripts.yml).
A daily workflow (sync-language-docs.yml) regenerates the docs and
opens or updates a bot PR whenever the API response changed, surfacing
any generator warnings in the PR body.
The regenerated content also refreshes the data itself: new Voice
languages (Hindi, Malay, Tamil), the style-rules expansion from 8 to
33 target languages, and the full translate_text long tail in the
language table.
Co-authored-by: Lucas Mathis <lucas.mathis@deepl.com>
<li>`pt` (Portuguese) (unspecified variant for backward compatibility; please select `pt-PT` or `pt-BR`</li>
118
+
<li>`pt` (Portuguese)</li>
119
+
<li>`pt-BR` (Portuguese (Brazilian))</li>
120
+
<li>`pt-PT` (Portuguese (European))</li>
112
121
<li>`ro` (Romanian)</li>
113
122
<li>`ru` (Russian)</li>
114
123
<li>`sk` (Slovak)</li>
115
124
<li>`sl` (Slovenian)</li>
116
125
<li>`sv` (Swedish)</li>
126
+
<li>`ta` (Tamil)</li>
117
127
<li>`th` (Thai)</li>
118
128
<li>`tl` (Tagalog)</li>
119
129
<li>`tr` (Turkish)</li>
120
130
<li>`uk` (Ukrainian)</li>
121
131
<li>`vi` (Vietnamese)</li>
132
+
<li>`zh` (Chinese)</li>
122
133
<li>`zh-Hans` (Chinese (simplified))</li>
123
134
<li>`zh-Hant` (Chinese (traditional))</li>
135
+
{/* END GENERATED voice-target-languages */}
124
136
</ul>
137
+
<p>`pt-PT` covers all Portuguese varieties excluding Brazilian Portuguese. `pt` is an unspecified variant kept for backward compatibility; prefer `pt-PT` or `pt-BR`.</p>
Copy file name to clipboardExpand all lines: docs/getting-started/supported-languages.mdx
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,5 +21,9 @@ import { LanguageTable } from "/snippets/language-table.jsx"
21
21
*/}
22
22
23
23
<Info>
24
-
Style rules are supported for the following target languages: `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, and `zh`. For more details, see the [Style Rules API documentation](/docs/customize/using-style-rules). Writing style and tone availability for `/write/rephrase` can also be retrieved via [`GET /v3/languages?resource=write`](/docs/languages/using-the-languages-api).
24
+
{/* BEGIN GENERATED style-rules-languages (run: node scripts/update-language-docs.mjs) */}
25
+
Style rules are supported for the following target languages: `ar`, `bg`, `cs`, `da`, `de`, `el`, `en`, `es`, `et`, `fi`, `fr`, `he`, `hu`, `id`, `it`, `ja`, `ko`, `lt`, `lv`, `nb`, `nl`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sv`, `th`, `tr`, `uk`, `vi`, and `zh`.
26
+
{/* END GENERATED style-rules-languages */}
27
+
28
+
For more details, see the [Style Rules API documentation](/docs/customize/using-style-rules). Writing style and tone availability for `/write/rephrase` can also be retrieved via [`GET /v3/languages?resource=write`](/docs/languages/using-the-languages-api).
Copy file name to clipboardExpand all lines: docs/voice/supported-languages-formats-and-limits.mdx
+45-43Lines changed: 45 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,49 +8,51 @@ description: "Reference for DeepL Voice API language availability, supported aud
8
8
Translation is always provided by DeepL. For some languages, transcription and translated speech are provided by external service partners. All source languages can be translated into any target language.
0 commit comments