Skip to content

feat: i18n fallback#303

Open
jurgenbelien wants to merge 9 commits intomainfrom
feat/i18n-fallback
Open

feat: i18n fallback#303
jurgenbelien wants to merge 9 commits intomainfrom
feat/i18n-fallback

Conversation

@jurgenbelien
Copy link
Copy Markdown
Contributor

@jurgenbelien jurgenbelien commented Sep 16, 2025

Changes

  • improves mocks for i18n tests
  • creates an array of fallback languages to cascade through
  • adds variables to datocms collection whenever a fragment is using variables
  • adds locale and fallback locale variables to graphql queries.
  • returns an href based not on the currently active locale, but on the locale of the targeted resource

Associated issue

Relates to, but does not completely solve #271

How to test

Checklist

  • I have performed a self-review of my own code
  • I have made sure that my PR is easy to review (not too big, includes comments)
  • I have made updated relevant documentation files (in project README, docs/, etc)
  • I have added a decision log entry if the change affects the architecture or changes a significant technology
  • I have notified a reviewer

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Sep 16, 2025

Deploying head-start with  Cloudflare Pages  Cloudflare Pages

Latest commit: bba6681
Status: ✅  Deploy successful!
Preview URL: https://c8c66fb9.head-start.pages.dev
Branch Preview URL: https://feat-i18n-fallback.head-start.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants