Translate content to Spanish. Move from JSON to YAML#84
Merged
brunoborges merged 14 commits intomainfrom Feb 26, 2026
Merged
Conversation
support yaml as format for patterns
Merged both branches into generate.java: - YAML support: JSON_MAPPER, YAML_MAPPER, and MAPPERS for .json/.yaml/.yml - i18n support: TRANSLATIONS_DIR, dotted token pattern, resolveSnippet, locale-aware generation - Updated all bare MAPPER references to JSON_MAPPER Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Translation files now contain only translatable fields (title, summary, explanation, oldApproach, modernApproach, whyModernWins, support.description). The generator overlays them onto the English base, preventing divergence. - Add difficultyDisplay token: CSS class stays as enum value, display text resolved from UI strings (difficulty.beginner/intermediate/advanced). - Generator loadStrings and resolveSnippet now support .json/.yaml/.yml translation files via findWithExtensions/readAuto helpers. - Update i18n spec with field translation reference table and partial-file approach. - Trim existing pt-BR translation files to translatable fields only. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
All 112 pattern definitions under content/ are now in YAML format. The generator supports both JSON and YAML, so this is a format-only change with identical HTML output. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add es locale to locales.properties - Create translations/strings/es.yaml with all UI strings - Create 112 translated content files under translations/content/es/ covering all 11 categories (language, collections, streams, etc.) - Translation files contain only translatable fields per i18n spec Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace per-locale entries with patterns that automatically match any future locale directory (xx/ or xx-XX/) without manual updates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add YAML quoting, Jackson compatibility, and validation sections to the i18n spec based on lessons from Spanish translation. - Expand README contributing section with translation workflow, partial-file schema example, and YAML quoting warning. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
This pull request migrates several "collections" topic files from JSON format to YAML format for improved readability and maintainability. Each JSON file has been fully replaced with an equivalent YAML file, with no changes to the underlying content or structure. This is a format migration only and does not alter any data or logic.
This PR also includes Spanish translation!