Skip to content

Unit 4: i18n foundation — add i18n/en.toml + [languages.en]#6

Open
stradichenko wants to merge 1 commit intomainfrom
unit-04-i18n-foundation
Open

Unit 4: i18n foundation — add i18n/en.toml + [languages.en]#6
stradichenko wants to merge 1 commit intomainfrom
unit-04-i18n-foundation

Conversation

@stradichenko
Copy link
Copy Markdown
Owner

Summary

  • Add i18n/en.toml containing all theme strings as keys (Created, Updated, TableOfContents, ReadMore, Search, GeneratePDF, ListenToPage, NoSocialLinks, NoInterests, ActivityCalendar, Less, More, AllNodes, ResetToDefault, SaveAsPNG, …).
  • Append defaultContentLanguage = "en" and a [languages.en] block to config/_default/hugo.toml.
  • Add a brief Internationalization section to README.md.
  • Template-side migration of literals to {{ T "key" | default "..." }} is performed per-file in Units 5–14.

Test plan

  • hugo server -s exampleSite starts cleanly.
  • {{ T "Created" }} resolves in any test template.
  • No regressions on existing pages (English literals still render).

Part of the PKB-theme modernization batch (15 units).

- Add i18n/en.toml with all theme strings (Created, Updated, TableOfContents,
  ReadMore, Search, GeneratePDF, ListenToPage, NoSocialLinks, NoInterests,
  ActivityCalendar, Less, More, AllNodes, ResetToDefault, SaveAsPNG, etc.).
- Append [languages.en] to config/_default/hugo.toml with
  defaultContentLanguage = "en".
- Document the workflow for adding translations in README.md.
- Template-side migration of literals to {{ T "key" | default "..." }}
  happens in Units 5–14 per file.
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