chore(v3-languages): vend API responses as JSON#347
Draft
daniel-jones-dev wants to merge 2 commits into
Draft
Conversation
Adds data/v3-languages/ with verbatim responses from /v3/languages and /v3/languages/resources fetched against api.deepl.com using ?include=beta&include=external. Adds scripts/fetch_v3_languages.py to regenerate the files from DEEPL_AUTH_KEY. These files become the single source of truth for repo tooling that needs to know which languages and features the API supports. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
5 tasks
Adds a --base-url CLI flag (and matching DEEPL_API_BASE_URL env var) to scripts/fetch_v3_languages.py so the script can be pointed at a staging environment, mock server, or other test endpoint without editing the script. The existing --free shortcut remains for the api-free.deepl.com host; passing both --base-url and --free is rejected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/v3/languagesand/v3/languages/resourcestodata/v3-languages/(one file per resource plusresources.json), fetched againstapi.deepl.comwith?include=beta&include=externalso the vended data is the full superset.scripts/fetch_v3_languages.py(stdlib-only) that refreshes every file usingDEEPL_AUTH_KEY. Pass--freeto hitapi-free.deepl.com..mintignoresodata/andscripts/are not picked up by Mintlify.This is the first of three stacked PRs:
snippets/language-table.jsxfrom the vended JSON.Test plan
data/v3-languages/*.jsonto confirm each resource is represented.DEEPL_AUTH_KEY=... python3 scripts/fetch_v3_languages.pylocally; verify no diff against committed files (modulo any genuine upstream change).mint devstill serves the site (data files are ignored).🤖 Generated with Claude Code