Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(i18n): pass search params to fallback #12547

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mtwilliams-code
Copy link

Changes

Testing

Tested locally with the same code in the stackblitz example in issue. Ran all i18n test suites. Did not add a specific test for this - if maintainers want I will, but wanted feedback on willingness to include this before I dove into the fixtures.

Docs

/cc @withastro/maintainers-docs for feedback!
May need docs. The current behavior is also undocumented and imo less intuitive.

Copy link

changeset-bot bot commented Nov 28, 2024

🦋 Changeset detected

Latest commit: 23a040f

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) semver: minor Change triggers a `minor` release labels Nov 28, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is blocked because it contains a minor changeset. A reviewer will merge this at the next release if approved.

Copy link

codspeed-hq bot commented Nov 28, 2024

CodSpeed Performance Report

Merging #12547 will degrade performances by 11.93%

Comparing mtwilliams-code:fix-i18n-search (23a040f) with main (65e50eb)

Summary

⚡ 3 improvements
❌ 1 regressions
✅ 2 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main mtwilliams-code:fix-i18n-search Change
Rendering: streaming [false], .md file 21.2 ms 24.1 ms -11.93%
Rendering: streaming [true], .astro file 1.8 s 1.4 s +24.14%
Rendering: streaming [true], .md file 16.4 ms 12.8 ms +27.86%
Rendering: streaming [true], .mdx file 1.2 s 1 s +13.29%

@ascorbic
Copy link
Contributor

This looks good. Could you add a test for this? Probably in packages/astro/test/i18n-routing.test.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) semver: minor Change triggers a `minor` release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants