Skip to content

Conversation

Copy link

Copilot AI commented Nov 2, 2025

Implements Hugo's standard i18n system to enable multilingual sites.

Changes

Translation files (i18n/)

  • 5 languages: English (default), Spanish, French, German, Portuguese
  • 19 translatable strings covering all UI elements (navigation, forms, buttons, footer, error pages)

Template updates (12 files)

  • Replaced hardcoded strings with i18n function calls
  • Maintains backwards compatibility via fallback chain: config params → i18n → legacy params.terms.* → defaults

Example:

- <h3>{{ .Site.Params.about.title | default "About" }}</h3>
+ <h3>{{ .Site.Params.about.title | default (i18n "about") }}</h3>

Documentation

  • I18N.md - Usage guide and configuration examples
  • exampleSite/hugo-multilingual.yaml - Reference multilingual config
  • README.md - Feature listing and quick start

Usage

defaultContentLanguage: en
languages:
  en:
    languageName: "English"
  es:
    languageName: "Español"
  fr:
    languageName: "Français"

Existing sites require no changes. Custom title overrides in config continue to work as before.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • publish.twitter.com
    • Triggering command: hugo --themesDir ../.. --theme hugo-profile (dns block)
    • Triggering command: hugo --ignoreCache --themesDir ../.. --theme hugo-profile (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

implement I18n support


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add I18n support for internationalization Add i18n support with 5 languages Nov 2, 2025
Copilot AI requested a review from gurusabarish November 2, 2025 06:23
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