Skip to content

chore(docs): remove i18n and the five translated locales - #7247

Merged
waleedlatif1 merged 1 commit into
stagingfrom
chore/remove-i18n
Aug 29, 2026
Merged

chore(docs): remove i18n and the five translated locales#7247
waleedlatif1 merged 1 commit into
stagingfrom
chore/remove-i18n

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Deleted the es, fr, de, ja, and zh docs content trees (995 files) and flattened content/docs/en/** up to content/docs/**
  • Removed the fumadocs i18n layer: lib/i18n.ts, i18n.json, i18n.lock, the i18n.cache gitignore entry, createI18nMiddleware in proxy.ts, and the i18n option on the source loader
  • Collapsed app/[lang]/** into app/**, merging the locale layout's html/body shell into the root layout. The OpenAPI virtual pages moved off baseDir: 'en/api-reference/(generated)' — that en segment was the locale the dir parser consumed
  • Stripped locale branching from the sitemap, llms.txt, llms-full.txt, the llms.mdx route, the sidebar's active-path matching, structured data, and the hreflang / alternateLocale metadata
  • Simplified the docs search route to English-only: one english text-search config, unconditional vector search, and no locale-prefix filtering of sourceDocument. That filter was already inert — sourceDocument is relative to the chunker's docsPath, so it has always been an unprefixed section path (workflows/blocks/agent.mdx), and it stays byte-identical here because the pages and the docsPath default moved down the same level together
  • Repointed every script, test, and the CI path filter at content/docs, and de-looped the API-reference sidebar checks over the six locales
  • The execution-guide wire-shape test only covered the removed locales, so it is retargeted at the English guides (verified they already satisfy every assertion) rather than dropped

Type of Change

  • Chore / maintenance

Testing

  • bun run check:audits — 39/39 pass
  • apps/docs build — succeeds, 666 paths prerendered, no locale prefixes
  • apps/docs vitest, the OpenAPI suite (143 tests), and the netsuite docs-path test all pass
  • bun run lint, check-block-registry, and apps/docs type-check clean
  • Generators re-run and in sync: docs-manifest, agent-stream-docs, generate:cli-docs, docs:check, check:openapi

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

The docs shipped `es`, `fr`, `de`, `ja`, and `zh` alongside `en` through
fumadocs i18n and a lingo.dev translation pipeline. Neither is used any
more, so this removes the locale layer end to end rather than leaving a
vestigial `en` directory behind it.

- Delete the five translated content trees (995 files) and flatten
  `content/docs/en/**` up to `content/docs/**`.
- Delete `lib/i18n.ts`, `i18n.json`, `i18n.lock`, and the `i18n.cache`
  gitignore entry; drop `createI18nMiddleware` from `proxy.ts` and the
  `i18n` option from the source loader.
- Collapse `app/[lang]/**` into `app/**`, merging the locale layout's
  html/body shell into the root layout. The OpenAPI virtual pages moved
  off `baseDir: 'en/api-reference/(generated)'`, which was the `en`
  segment the dir parser used to consume.
- Strip locale branching from the sitemap, `llms.txt`, `llms-full.txt`,
  the `llms.mdx` route, the sidebar's active-path matching, structured
  data, and the hreflang/`alternateLocale` metadata.
- Simplify the search route to English-only: one `english` text-search
  config, unconditional vector search, and no locale-prefix filtering of
  `sourceDocument`. The docs-embeddings job already runs with `--clear`,
  so the now-unprefixed paths are rewritten on the next run.
- Repoint every script, test, and the CI path filter at `content/docs`,
  and de-loop the API-reference sidebar checks over the six locales. The
  execution-guide wire-shape test covered only the removed locales; it is
  retargeted at the English guides, which already satisfy it.

`check:audits` (39 audits), the docs build (666 paths), the docs and
OpenAPI suites, and the netsuite docs-path test all pass.
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 29, 2026 1:08am

Request Review

@greptile-apps

greptile-apps Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Too many files changed for review (1511 files, 500 file limit).

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 1511 files

Confidence score: 3/5

  • apps/docs/app/api/search/route.ts can return stale locale-prefixed embedding rows if the app deploys before the embedding rebuild completes, exposing translated pages and outdated /en/... links in search results; coordinate deployment with the rebuild or exclude stale rows until it finishes.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/docs/app/api/search/route.ts">

<violation number="1" location="apps/docs/app/api/search/route.ts:136">
P2: When the new app is deployed before the embedding rebuild finishes, this loop includes stale locale-prefixed rows that still exist in `docs_embeddings`. Those results expose translated pages and old `/en/...` links that no longer resolve; filter to live unprefixed documents or rebuild the index before promoting this route.</violation>
</file>

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.

Fix all with cubic | Re-trigger cubic

Comment thread apps/docs/app/api/search/route.ts
@waleedlatif1
waleedlatif1 merged commit 9b76f6e into staging Aug 29, 2026
27 checks passed
@waleedlatif1
waleedlatif1 deleted the chore/remove-i18n branch August 29, 2026 01:34
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