Title: Limit a collection (and its pages) to specific languages · Issue #318 · ycode/ycode · GitHub
Open Graph Title: Limit a collection (and its pages) to specific languages · Issue #318 · ycode/ycode
X Title: Limit a collection (and its pages) to specific languages · Issue #318 · ycode/ycode
Description: Feature request Allow a collection (e.g. Blog) to be restricted to one or more specific languages — for example, only the default/main language — and hidden for all other locales. Problem On multilingual sites, every collection is curren...
Open Graph Description: Feature request Allow a collection (e.g. Blog) to be restricted to one or more specific languages — for example, only the default/main language — and hidden for all other locales. Problem On multil...
X Description: Feature request Allow a collection (e.g. Blog) to be restricted to one or more specific languages — for example, only the default/main language — and hidden for all other locales. Problem On multil...
Opengraph URL: https://github.com/ycode/ycode/issues/318
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Limit a collection (and its pages) to specific languages","articleBody":"## Feature request\n\nAllow a collection (e.g. **Blog**) to be restricted to one or more specific languages — for example, only the default/main language — and hidden for all other locales.\n\n## Problem\n\nOn multilingual sites, every collection is currently available across all locales. Some content doesn't need (or shouldn't have) translations. A user may keep their Blog only in the main language, but right now there's no way to scope a collection to a subset of languages. This leads to:\n\n- Empty or fallback (untranslated) blog content surfacing under non-default locales\n- Localized collection/dynamic-page URLs existing for languages that have no real translated content\n- Those URLs being included in the sitemap + `hreflang` clusters, which can create duplicate/thin-content signals for search engines\n\n## Proposed solution\n\nAdd a per-collection language scope setting, e.g.:\n\n- **Available in:** All languages (default) / Selected languages\n- When \"Selected languages\" is chosen, pick which locales the collection is enabled for (at minimum, \"default language only\")\n\nWhen a collection is restricted, for any excluded locale:\n\n- Hide the collection's dynamic pages and CMS-bound content from that locale\n- Return 404 (or redirect to the default locale) for the excluded localized URLs\n- Exclude those URLs from `sitemap.xml` and from `hreflang` alternates\n- Optionally hide the collection from the language switcher context where it doesn't apply\n\n## Open questions\n\n- Should this be configured at the collection level, the dynamic-page level, or both?\n- For excluded locales, is the preferred behavior a 404 or a redirect to the default-locale equivalent?\n- Should individual collection items also be scopeable per language, or only the whole collection?\n\n## Context\n\nRequested by a user who wants to keep their Blog in the main language only and hide it for other languages.","author":{"url":"https://github.com/ysamcode","@type":"Person","name":"ysamcode"},"datePublished":"2026-06-03T08:36:02Z","url":"https://github.com/ycode/ycode/issues/318"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c3362c94-f8a3-5785-f56f-675fb6094b8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81FC:7341C:249810:32456B:6AFE28F9 |
| html-safe-nonce | 539cca87eb9f15108b5be13d92c5e50c3b423230a0e4d20219a80567cee95ccc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUZDOjczNDFDOjI0OTgxMDozMjQ1NkI6NkFGRTI4RjkiLCJ2aXNpdG9yX2lkIjoiNjk5MjgwOTg4NDc2MDU0OTYyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e8ee3a833d4a31ec15687ec53939e7bbeacf3398e8ce619edd69259cf5aaad5f |
| hovercard-subject-tag | issue:4578210668 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ycode/ycode/318/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f4ce9c31744bc2f686efc718dd60ae154ea19901fac34fad4fa7dbf199251e0/ycode/ycode/issues/318 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f4ce9c31744bc2f686efc718dd60ae154ea19901fac34fad4fa7dbf199251e0/ycode/ycode/issues/318 |
| og:image:alt | Feature request Allow a collection (e.g. Blog) to be restricted to one or more specific languages — for example, only the default/main language — and hidden for all other locales. Problem On multil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ysamcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | e973f9ec3625f3faad8cac5c2d11a214b7ffe45f3cc563b828459b290ecaeed3 |
| turbo-cache-control | no-preview |
| go-import | github.com/ycode/ycode git https://github.com/ycode/ycode.git |
| octolytics-dimension-user_id | 65892203 |
| octolytics-dimension-user_login | ycode |
| octolytics-dimension-repository_id | 1165452593 |
| octolytics-dimension-repository_nwo | ycode/ycode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1165452593 |
| octolytics-dimension-repository_network_root_nwo | ycode/ycode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1f92c367595b9190e0be293896078033886b1913 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width