Skip to content

Fix navigation and donation fallbacks for partial translations - #364

Merged
biodranik merged 2 commits into
masterfrom
fix/partial-language-menu-fallback
Nov 3, 2026
Merged

biodranik merged 2 commits into
masterfrom
fix/partial-language-menu-fallback

Conversation

@biodranik

@biodranik biodranik commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

A language can provide a homepage without translating every navigation destination. Resolve News, Donate, Contribute and Help directly in the active language, then use a strict default-language lookup for each missing destination. Available translations keep their own labels and URLs, while missing required default resources still stop the build.

The donation pages can also be translated independently. Load their companion pages explicitly from the default language before selecting an available translation: the main page can use default-language checkout labels, and the focused subscribe page can link to the default-language donation page.

The Zola regression suite covers six menu configurations and both missing donation companions, checking the selected labels and generated destinations. Shared fixture writing and build helpers keep the tests small. Run the suite in the Zola CI job with the same pinned version as the site build.

Validation:

  • Python 3.12 and Zola 0.23.6: all eight navigation/donation configurations pass.
  • Both new donation cases reproduced their missing-resource build failures before the companion lookup fixes.
  • Full site builds of this branch and master generate the same 4,015 HTML files, with matching markup and text after ignoring formatting whitespace.
  • npm test: 24 tooling tests and 185 round-trip checks pass.
  • npm run test:browser: all eight checkout regressions pass.
  • git diff --check master passes.
  • CI passes with pinned Zola 0.23.4, including the navigation and checkout browser regressions.

Related to #363; these fallback fixes are independent of the Korean translation and the metadata-validation fix in #365.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Deploying organicmaps with  Cloudflare Pages  Cloudflare Pages

Latest commit: e7dc34b
Status: ✅  Deploy successful!
Preview URL: https://887f9aa2.organicmaps.pages.dev
Branch Preview URL: https://fix-partial-language-menu-fa.organicmaps.pages.dev

View logs

@biodranik
biodranik force-pushed the fix/partial-language-menu-fallback branch from 587eef9 to 10b8d7b Compare November 3, 2026 14:16
@biodranik biodranik changed the title Fix menu fallback for partially translated languages Fix navigation and donation fallbacks for partial translations Nov 3, 2026
Signed-off-by: Alexander Borsuk <me@alex.bio>
Resolve menu destinations in the active language, then use strict lookups
for the default-language fallback. This avoids scanning translation lists
and reloading available translations.

Load donation companion pages from the default language before selecting
a translation, so either landing page can be translated independently.
Cover both missing companions with production donation templates and
assert the selected form label and generated destination.

Signed-off-by: Alexander Borsuk <me@alex.bio>
@biodranik
biodranik force-pushed the fix/partial-language-menu-fallback branch from 95d5de5 to e7dc34b Compare November 3, 2026 16:57
@biodranik
biodranik merged commit fb305f5 into master Nov 3, 2026
4 checks passed
@biodranik
biodranik deleted the fix/partial-language-menu-fallback branch November 3, 2026 17:04

This branch was successfully deployed

1 active deployment
production — e7dc34b7 Deployed Nov 3, 2026 by biodranik via Check Zola build #1247
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