feat(cms): make navigation menus translatable via Strapi i18n [INTORG-587]#197
Open
Infi-Knight wants to merge 4 commits intostagingfrom
Open
feat(cms): make navigation menus translatable via Strapi i18n [INTORG-587]#197Infi-Knight wants to merge 4 commits intostagingfrom
Infi-Knight wants to merge 4 commits intostagingfrom
Conversation
…-587] Enable editors to manage Spanish (ES) labels and links for the Foundation and Summit navigation menus directly in Strapi's admin UI. - Add i18n localized plugin options to both navigation content type schemas - Update navigation lifecycle to export per-locale JSON files (.en.json, .es.json) - Add locale parameter to Strapi findFirst type definition - Create navigation utility for Astro to load locale-aware menu data - Update FoundationHeader and SummitHeader to read routeLocale and select the correct navigation JSON - Add unit tests for sanitize functions and locale path derivation - Remove old non-localized navigation JSON files
✅ Deploy Preview for interledger-org-v5 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Integrate staging's exportAndCommitNavigation helper and afterUpdate hook with per-locale export logic from this branch.
Collaborator
Collaborator
Collaborator
|
sync script broken ➜ cms git:(ravi/intorg-587) ✗ pnpm sync:navigation --force
[dotenv@17.3.1] injecting env (16) from ../.env -- tip: ⚙️ write to custom object with { processEnv: myObject } ❌ Fatal error: Config file not found: /Users/jxm/dev/interleger/interledger.org-v5/src/config/foundation-navigation.json |
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
Enables editors to manage Spanish (ES) labels and links for Foundation and Summit navigation menus directly in Strapi's admin UI.
Changes:
i18n.localizedon Foundation Navigation and Summit Navigation Strapi schemas.en.json,.es.json) instead of a single filesrc/utils/navigation.tsutility for Astro to load locale-aware menu data based onrouteLocaleFoundationHeaderandSummitHeaderto read the current locale and load the correct navigationRelated Issue
Fixes INTORG-587
Manual Test
pnpm startand visit/verify EN Foundation header renders all nav groups/es/sobre-nosotrosverify header renders (labels same as EN until ES content is edited)/summitand/es/summitverify Summit header renders correctlysrc/config/foundation-navigation.es.json, change a label (e.g. "Foundation" → "Fundación") verify/es/pages show the updated label while/stays EnglishScreenshots
Checks
pnpm run formatpnpm run lintPR Checklist