Skip to content

Disable I18n in example site (commented for reference) - #254

Draft
gurusabarish with Copilot wants to merge 3 commits into
masterfrom
copilot/disable-i18n-support
Draft

Disable I18n in example site (commented for reference)#254
gurusabarish with Copilot wants to merge 3 commits into
masterfrom
copilot/disable-i18n-support

Conversation

Copilot AI commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Disables multilingual configuration in example site by commenting it out instead of removing it. The site now runs in English-only mode without language switcher, while preserving all I18n configuration as reference for users who want to enable multilingual support.

Changes

  • Commented multilingual config: Commented out defaultContentLanguage, defaultContentLanguageInSubdir, and entire languages section (430 lines) instead of deleting them
  • Added active menu: Added top-level menu configuration with Blog and Gallery items, with clear comment explaining how to enable I18n
  • Commented duplicates: Commented out redundant Menus section with note to use the active menu above

Result

# Before: 860 lines with en/es/fr language configs
languages:
  en:
    languageName: "English"
    menu: ...
    params: ...
  es:
    languageName: "Español"
    menu: ...
    params: ...
  fr: ...

# After: 875 lines with commented I18n config for reference
# Multilingual configuration
# defaultContentLanguage: "en"
# defaultContentLanguageInSubdir: false

# languages:
#   en:
#     languageName: "English"
#     menu: ...
#     params: ...
#   es:
#     languageName: "Español"
#     menu: ...
#     params: ...
#   fr: ...

# Active menu configuration (uncomment and modify languages section above to enable I18n)
menu:
  main:
    - identifier: blog
      name: Blog
      ...

User Benefit

Users can easily enable I18n by uncommenting the configuration sections. All multilingual configurations for English, Spanish, and French are preserved as reference.

Theme I18n support (i18n/*.toml files) remains unchanged for users who need multilingual sites.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com>
Copilot AI changed the title [WIP] Disable I18n support in example site Disable I18n in example site Feb 11, 2026
Copilot AI requested a review from gurusabarish February 11, 2026 03:52
@gurusabarish

Copy link
Copy Markdown
Owner

@copilot Only comment the lines instead of removing them. As it can be referred by others who wants to use I18n.

Co-authored-by: gurusabarish <53465361+gurusabarish@users.noreply.github.com>

Copilot AI commented Feb 11, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Only comment the lines instead of removing them. As it can be referred by others who wants to use I18n.

Done! The I18n configuration is now commented out instead of removed. Users can reference the commented sections (multilingual settings and complete language configs for en/es/fr) to enable I18n support when needed. See commit 76c8075.

Copilot AI changed the title Disable I18n in example site Disable I18n in example site (commented for reference) Feb 11, 2026
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.

2 participants