Skip to content

[docs-infra] Remove infra around the i18n setup#48360

Merged
brijeshb42 merged 7 commits into
mui:masterfrom
brijeshb42:docs-remove-i18n
Apr 27, 2026
Merged

[docs-infra] Remove infra around the i18n setup#48360
brijeshb42 merged 7 commits into
mui:masterfrom
brijeshb42:docs-remove-i18n

Conversation

@brijeshb42
Copy link
Copy Markdown
Contributor

@brijeshb42 brijeshb42 commented Apr 24, 2026

This only cleans i18n related stuff in the docs.

To be followed up separately by cleanup in the core-docs package.

@brijeshb42 brijeshb42 requested a review from a team April 24, 2026 11:10
@brijeshb42 brijeshb42 added the scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305). label Apr 24, 2026
@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented Apr 24, 2026

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Deploy preview

https://deploy-preview-48360--material-ui.netlify.app/


Check out the code infra dashboard for more information about this PR.

Comment thread docs/next.config.ts
workspaceRoot,
ignoreLanguagePages: LANGUAGES_IGNORE_PAGES,
languagesInProgress: LANGUAGES_IN_PROGRESS,
ignoreLanguagePages: () => false,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Keeping stubs for now. Will be fully cleaned up in the next PR.

@brijeshb42 brijeshb42 requested a review from a team April 24, 2026 13:35
brijeshb42 and others added 7 commits April 27, 2026 12:33
mui.com is English-only, so the i18n regeneration entry point and its
npm alias are dead weight.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mui.com only ships English, so the /:lang prefix logic, the LANGUAGES_SSR
multi-traversal, the buildOnlyEnglishLocale deploy-preview shortcut, and
the BUILD_ONLY_ENGLISH_LOCALE env flag were all scaffolding for a feature
that does not exist. The markdown loader still receives no-op
ignoreLanguagePages/languagesInProgress until we simplify core-docs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
pageProps.userLanguage is always 'en' now that routing no longer
threads a locale, so the prefix computation always resolves to an
empty string. Inline the URLs and stop re-rendering productIdentifier
on a value that cannot change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
docs and componentsApiDescriptions only ever contain an 'en' key now
that the markdown loader and API docs builder stop emitting locale
variants.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
next.config.ts no longer imports LANGUAGES*, so the re-export shim can
go. LANGUAGES_LABEL in docs/src/modules/constants was never imported.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Janpot
Copy link
Copy Markdown
Member

Janpot commented Apr 27, 2026

What's the plan forward? Should we also inline all translations again and get rid of the json files? In API docs, should we merge the labels into the api json files?

@brijeshb42
Copy link
Copy Markdown
Contributor Author

brijeshb42 commented Apr 27, 2026

We can keep the json files. Its easier to generate and use/morph later on as well, regardless of i18n or not.
In subsequent PRs, we could look into merging the contents of docs/translations/api-docs/accordion/accordion.json and docs/pages/material-ui/api/accordion.json

@brijeshb42 brijeshb42 merged commit 23bac1e into mui:master Apr 27, 2026
23 checks passed
@brijeshb42 brijeshb42 deleted the docs-remove-i18n branch April 27, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants