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 routing param #9274

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Fix i18n routing param #9274

merged 2 commits into from
Dec 4, 2023

Conversation

TheOtterlord
Copy link
Member

@TheOtterlord TheOtterlord commented Dec 3, 2023

Changes

Fixes usage of routing as a param to match the newer config.

TLDR: getRelativeLocaleUrlList was flagged as not returning /en/ when the routing strategy was prefix-always. Looks like that originated from i18n/index.ts still using routingStrategy from before the config was updated

Testing

Updated existing tests to match the new behaviour

Docs

N/A

Copy link

changeset-bot bot commented Dec 3, 2023

🦋 Changeset detected

Latest commit: 1dc0216

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 the pkg: astro Related to the core `astro` package (scope) label Dec 3, 2023
@github-actions github-actions bot added the pr: docs A PR that includes documentation for review label Dec 3, 2023
Copy link
Contributor

Choose a reason for hiding this comment

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

and we didnt get type errors here because it is a virtual module?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the call made in the virtual module would error if it was analysed by TS afaik

@ematipico ematipico merged commit feaba2c into withastro:main Dec 4, 2023
13 checks passed
akshit20421 added a commit to akshit20421/astro that referenced this pull request Dec 4, 2023
@astrobot-houston astrobot-houston mentioned this pull request Dec 5, 2023
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) pr: docs A PR that includes documentation for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants