Update transaltations #2
Merged
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 introduces a set of tools and features for managing Hugo i18n YAML translation files and adds a new feature flag for conditional rendering in the navigation menu. Key changes include the addition of PowerShell scripts for translation management, updates to project documentation, and conditional logic for a "Guide Details" link in navigation.
Translation Management Enhancements:
Compare-YamlTranslations.ps1: A PowerShell script for comparing two YAML translation files to identify missing keys, differing values, and extra keys. It includes options to add missing keys automatically or preview changes with a-WhatIfflag.Sync-Translations.ps1: A wrapper script for syncing translations between default module/site files or custom YAML files. It supports bidirectional sync, flexible file paths, and safe operations with a-WhatIfpreview..powershell/README.md: Comprehensive documentation for the new scripts, including usage examples, features, and workflow guidance.Feature Flag and Conditional Rendering:
features.guideDetailsparameter in bothmodule/hugo.yaml(set totrue) andsite/hugo.yaml(set tofalse) to control the visibility of the "Guide Details" link. [1] [2]module/layouts/_partials/components/guide-nav-menu.htmlto conditionally render the "Guide Details" link based on thefeatures.guideDetailsflag.