Unit 4: i18n foundation — add i18n/en.toml + [languages.en]#6
Open
stradichenko wants to merge 1 commit intomainfrom
Open
Unit 4: i18n foundation — add i18n/en.toml + [languages.en]#6stradichenko wants to merge 1 commit intomainfrom
stradichenko wants to merge 1 commit intomainfrom
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
i18n/en.tomlcontaining all theme strings as keys (Created, Updated, TableOfContents, ReadMore, Search, GeneratePDF, ListenToPage, NoSocialLinks, NoInterests, ActivityCalendar, Less, More, AllNodes, ResetToDefault, SaveAsPNG, …).defaultContentLanguage = "en"and a[languages.en]block toconfig/_default/hugo.toml.README.md.{{ T "key" | default "..." }}is performed per-file in Units 5–14.Test plan
hugo server -s exampleSitestarts cleanly.{{ T "Created" }}resolves in any test template.Part of the PKB-theme modernization batch (15 units).