Skip to content

fix(deepl): discover supported languages from API - #871

Open
zeldrisho wants to merge 1 commit into
bbepis:masterfrom
zeldrisho:fix/deepl-dynamic-language-support
Open

zeldrisho wants to merge 1 commit into
bbepis:masterfrom
zeldrisho:fix/deepl-dynamic-language-support

Conversation

@zeldrisho

Copy link
Copy Markdown

The authenticated DeepL integration now retrieves translation-language metadata from DeepL’s /v3/languages?resource=translate_text endpoint and validates source/target direction using the API response. Metadata is cached for 24 hours, so newly supported languages become available without code changes; this includes English-to-Vietnamese translation. The Free and Pro API hosts are selected consistently with the existing account configuration.

The obsolete hardcoded language gates were also removed from both DeepL endpoint wrappers. The unofficial endpoint now lets DeepL’s service determine availability, while the authenticated endpoint uses the documented API metadata. This branch contains only the DeepL language-support commit.

@zeldrisho
zeldrisho marked this pull request as ready for review September 18, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant