Skip to content

docs(i18n): add locale prefix to internal links in es, fr, zh docs - #11401

Merged
jasonsaayman merged 4 commits into
axios:v1.xfrom
malinele:docs/i18n-locale-prefix-links
Nov 9, 2026
Merged

jasonsaayman merged 4 commits into
axios:v1.xfrom
malinele:docs/i18n-locale-prefix-links

Conversation

@malinele

@malinele malinele commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Internal links in the Spanish, French, and Chinese docs used /pages/... with no locale prefix, so they opened the English page instead of the translation. On the request config pages, the TypeScript guide link also used a localized anchor that does not exist on the English page, so it landed at the top of the page.

All internal /pages/ links in docs/es, docs/fr, and docs/zh now include their locale prefix (/es/, /fr/, /zh/).

Originally found by @malinele with DriftWatch on request-config.md. A maintainer follow-up extended the fix to every translated page.

Linked issue

None. The rationale is above.

Changes

  • docs/{es,fr,zh}/pages/advanced/request-config.md: prefixed the security, TypeScript guide (localized anchor), adapters, cancellation, multipart-form-data-format, and rate-limiting links.
  • Prefixed the remaining unprefixed /pages/ links in the other es/fr/zh pages: 102 links across 39 files compared with v1.x, including misc/security.md, advanced/error-handling.md, advanced/api-reference.md, and getting-started/upgrade-guide.md.
  • docs/{es,fr,zh}/pages/advanced/header-methods.md: the "preserving a specific header case" link now uses each translation's own heading anchor (#preservar-el-formato-de-un-encabezado-especifico, #preserver-la-casse-d-un-en-tete-specifique, #保留特定请求头大小写). The English anchor does not exist on the localized headers page.
  • docs/fr/pages/advanced/config-defaults.md: the custom instance defaults link kept the accents (#valeurs-par-défaut-d-une-instance-personnalisée), but VitePress strips them when it builds heading anchors, so it did not resolve. It now uses #valeurs-par-defaut-d-une-instance-personnalisee. This was the only broken same-page anchor in the es/fr/zh docs.
  • Merged v1.x into the branch so the sweep also covers links added there since this PR was opened.
  • Added a Documentation entry to PRE_RELEASE_CHANGELOG.md.

Validation

  • Ran a link check script (Node.js v24.21.0) over every Markdown file in docs/es, docs/fr, and docs/zh. It checked each internal /pages/ link for the locale prefix, an existing target file, and a matching heading anchor, slugged the way VitePress's default slugify does. Before: 102 unprefixed links (the English targets resolved, but readers left their translation). After: 159 links checked, 0 unprefixed, 0 missing files, 0 missing anchors.
  • Reviewed the final diff against v1.x. Every changed docs line is a link target change, and no prose changed.
  • npm run lint, npm run build, and the Vitest suites do not apply. No runtime code, types, or build inputs changed. I did not run a local VitePress build.
  • GitHub Actions: no workflow runs on this docs-only change. At the time of writing, Greptile Review and Socket Security were pending on the latest commit.

Compatibility and documentation

Patch. Docs site only, with no runtime, public API, or type changes. PRE_RELEASE_DOCS.md, index.d.ts, and index.d.cts updates are not needed, because no unreleased runtime or API behavior is involved.

Checklist

  • Scope, target branch, and linked issue/rationale checked
  • PRE_RELEASE_CHANGELOG.md entry added or updated (or AGENTS.md's automated release-preparation exception explained)
  • Regression tests and relevant negative/platform cases covered (or N/A with reason): N/A, docs-only link changes checked with the link script above
  • Applicable local checks completed, with actual commands and results recorded above
  • Deferred release docs and ESM/CJS types/tests updated where needed (or N/A with reason): N/A, no runtime or type change
  • Semver impact stated and intentional breaking changes explained
  • Final diff reviewed for security, unrelated changes, generated artifacts, and test/debug leftovers
  • Latest GitHub Actions status recorded separately from review/security bot results

🤖 Generated with Claude Code


Summary by cubic

Description

Fixes 102 internal links across 39 pages in the Spanish, French, and Chinese docs that were missing their locale prefix (/es/, /fr/, /zh/), so they opened the English page instead of the translation. The TypeScript guide, security guide, and adapters links on the request-config pages are included, and the "Preserving a specific header case" link on the header-methods pages now points to each translation's own heading anchor. Docs-only change.

Docs

This PR is itself the documentation fix within /docs/, with the matching entry added to PRE_RELEASE_CHANGELOG.md; no further doc changes are required.

Testing

No tests were added; this is a docs-only change. Each link was verified by hand against the current headings in the localized pages.

Semantic version impact

No version bump is required. This is a docs-only change with no impact on package code, public API, or behavior.

Written for commit 1a78e8a. Summary will update on new commits.

View guided diff

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge, with no actionable issues found.

Summary

Adds locale prefixes to internal links in the Spanish, French, and Chinese docs.

  • Links in the Spanish, French, and Chinese docs keep readers in their language.

Reviews (5) · Last reviewed commit: "docs(fr): use the generated anchor for t..." · Reviewed by Greptile

@jasonsaayman jasonsaayman added commit::docs The PR is related to docs v1x Version 1 labels Nov 9, 2026
Prefix the remaining 102 unprefixed /pages/ links in the Spanish,
French, and Chinese docs with their locale so they stay on the
translated pages. Point the "preserving a specific header case" links
in header-methods.md at each translation's own heading anchor, since
the English anchor does not exist on the localized headers page.

Add the required PRE_RELEASE_CHANGELOG.md Documentation entry.
@jasonsaayman jasonsaayman changed the title docs(i18n): add locale prefix to TypeScript guide link in request-config (es, fr, zh) docs(i18n): add locale prefix to internal links in es, fr, zh docs Nov 9, 2026
@jasonsaayman jasonsaayman added the ai-assisted This PR was created with or in conjunction with AI label Nov 9, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 40 files

Reply to a comment to ask cubic a question or push back. It learns from your replies.

View guided diff | Re-trigger cubic

Comment thread PRE_RELEASE_CHANGELOG.md Resolved
VitePress strips accents when it builds heading anchors, so
"Valeurs par défaut d'une instance personnalisée" becomes
#valeurs-par-defaut-d-une-instance-personnalisee. The link on the French
config defaults page kept the accents and did not resolve.

Mention the fix in the existing PRE_RELEASE_CHANGELOG.md entry.
@jasonsaayman
jasonsaayman merged commit 4f203a9 into axios:v1.x Nov 9, 2026
markharding pushed a commit to futo-org/Harbor that referenced this pull request Nov 17, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [axios](https://axios-http.com) ([source](https://github.com/axios/axios)) | [`1.21.0` → `1.21.1`](https://renovatebot.com/diffs/npm/axios/1.21.0/1.21.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/axios/1.21.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/axios/1.21.0/1.21.1?slim=true) |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/2097) for more information.

---

### Release Notes

<details>
<summary>axios/axios (axios)</summary>

### [`v1.21.1`](https://github.com/axios/axios/releases/tag/v1.21.1)

[Compare Source](axios/axios@v1.21.0...v1.21.1)

#### v1.21.1 — November 9, 2026

This release raises the minimum `follow-redirects` version to fix a published CVE, fixes a Next.js prerendering failure caused by the response duration timer, corrects the `getAdapter` typings, and includes documentation corrections, new test coverage, CI runner changes and dependency updates.

#### 🔒 Security Fixes

- **follow-redirects:** Raised the `follow-redirects` range from `^1.16.0` to `^1.16.2` to fix CVE-2026-116689 (GHSA-mrwp-f3q8-3g9p). In the vulnerable versions, `sensitiveHeaders` arrays from another realm were ignored and custom credentials could follow redirects. Only the Node.js HTTP adapter is affected, and there are no API changes. (**[#&#8203;11410](axios/axios#11410)

#### 🐛 Bug Fixes

- **Response Duration:** `dispatchRequest` now measures `response.duration` with `performance.now()` and uses `Date.now()` only when `performance.now()` isn't available. In v1.21.0, any axios request from a Server Component failed Next.js production builds with Cache Components (`cacheComponents: true`), because Next.js rejects `Date.now()` while prerendering. The duration is still a whole number of milliseconds, and system clock changes no longer affect it. (**[#&#8203;11411](axios/axios#11411)
- **TypeScript:** `getAdapter` now accepts an optional `config?: AxiosRequestConfig` in `index.d.ts` and `index.d.cts`, matching what it does at runtime. You can now call `getAdapter('fetch', { env: { fetch: myFetch } })` without a cast. (**[#&#8203;11404](axios/axios#11404)

#### 🔧 Maintenance & Chores

- **Documentation Corrections:** Brought the README and docs site in line with how axios actually behaves:

  - `transformRequest` runs for every method, and transformers receive `(data, headers, status)`.
  - `responseType` and `Content-Type` have no default value.
  - `AxiosHeaders#get` and `#normalize` are described correctly.
  - Errors should be identified with `axios.isAxiosError()`, not by `name`.
  - The error tables now list `ECONNREFUSED` and `ERR_FORM_DATA_DEPTH_EXCEEDED`, and note that FormData parsing has a fixed depth limit that `maxDepth` doesn't change.
  - New notes cover what `redact` doesn't scan, which adapters enforce `maxContentLength` / `maxBodyLength`, and how `formToJSON()` handles field name collisions.

  (**[#&#8203;11374](axios/axios#11374, **[#&#8203;11373](axios/axios#11373, **[#&#8203;11389](axios/axios#11389, **[#&#8203;11419](axios/axios#11419, **[#&#8203;11429](axios/axios#11429, **[#&#8203;11430](axios/axios#11430)
- **Docs Site:** Added a Partners page, a shared card design for sponsors and partners, a Namespace sponsor badge, and a blog whose first post announces HeroDevs Never-Ending Support for Axios v0. Also applied the v1.20.0/v1.21.0 release notes to the docs, and fixed internal links in the es, fr and zh translations so they keep their locale prefix. (**[#&#8203;11390](axios/axios#11390, **[#&#8203;11399](axios/axios#11399, **[#&#8203;11400](axios/axios#11400, **[#&#8203;11412](axios/axios#11412, **[#&#8203;11401](axios/axios#11401)
- **Test Coverage:** Added cancellation tests across the HTTP, fetch and XHR adapters. They cover `AbortSignal`, `CancelToken`, cancelling while a request interceptor is pending, and timeout precedence. Also added tests for `no_proxy` edge cases in `shouldBypassProxy`, such as internationalized domain names, malformed CIDR and IPv4 entries, and port-qualified entries. Neither changes runtime behavior. (**[#&#8203;11376](axios/axios#11376, **[#&#8203;11431](axios/axios#11431)
- **CI:** GitHub Actions jobs now run on Namespace runners. The npm publish job stays on GitHub-hosted runners, because npm provenance and trusted publishing (OIDC) only work there. (**[#&#8203;11396](axios/axios#11396)
- **Dependencies:** Updated development and tooling dependencies, including `vitest` and `@vitest/*` (to 5.x at the root), `typescript` (7.x at the root), `vite`, `rollup`, `eslint`, `playwright`, `@commitlint/*`, `@rollup/plugin-alias`, `@rollup/plugin-terser`, `body-parser`, `multer`, `serialize-javascript`, `fast-uri`, `qs`, `zizmorcore/zizmor-action`, and `follow-redirects` in `/docs`. (**[#&#8203;11383](axios/axios#11383, **[#&#8203;11375](axios/axios#11375, **[#&#8203;11372](axios/axios#11372, **[#&#8203;11345](axios/axios#11345, **[#&#8203;11392](axios/axios#11392, **[#&#8203;11387](axios/axios#11387, **[#&#8203;11386](axios/axios#11386, **[#&#8203;11385](axios/axios#11385, **[#&#8203;11391](axios/axios#11391, **[#&#8203;11388](axios/axios#11388, **[#&#8203;11395](axios/axios#11395, **[#&#8203;11421](axios/axios#11421, **[#&#8203;11422](axios/axios#11422, **[#&#8203;11426](axios/axios#11426)
- **Release:** Prepared the 1.21.1 release. (**[#&#8203;11435](axios/axios#11435)

#### 🌟 New Contributors

We are thrilled to welcome our new contributors. Thank you for helping improve axios:

- **[@&#8203;Ghoscro](https://github.com/Ghoscro)** (**[#&#8203;11374](axios/axios#11374)
- **[@&#8203;pei711](https://github.com/pei711)** (**[#&#8203;11373](axios/axios#11373)
- **[@&#8203;ivanhapaz](https://github.com/ivanhapaz)** (**[#&#8203;11399](axios/axios#11399)
- **[@&#8203;aelmanaa](https://github.com/aelmanaa)** (**[#&#8203;11404](axios/axios#11404)
- **[@&#8203;Aryapatel-007](https://github.com/Aryapatel-007)** (**[#&#8203;11429](axios/axios#11429, **[#&#8203;11430](axios/axios#11430)
- **[@&#8203;umair-ghafoor-ai](https://github.com/umair-ghafoor-ai)** (**[#&#8203;11376](axios/axios#11376)
- **[@&#8203;yxshee](https://github.com/yxshee)** (**[#&#8203;11389](axios/axios#11389)
- **[@&#8203;malinele](https://github.com/malinele)** (**[#&#8203;11401](axios/axios#11401)
- **[@&#8203;AnantDuhan](https://github.com/AnantDuhan)** (**[#&#8203;11431](axios/axios#11431)

[Full Changelog](axios/axios@v1.21.0...v1.21.1)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 9am on tuesday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjcuNCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyNy40IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: https://code.futo.org/harbor/harbor/pulls/2336
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted This PR was created with or in conjunction with AI commit::docs The PR is related to docs v1x Version 1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants