nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.71k stars 478 forks source link

fix: locale head reactivity on locale change for `strategy: 'no_prefix'` #2897

Closed BobbieGoede closed 5 months ago

BobbieGoede commented 6 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

Resolves #2871

Even though SEO tags don't make much sense for the unprefixed routing strategy, the locale head composable also handles the lang and dir attributes which do need to be updated.

๐Ÿ“ Checklist

kazupon commented 6 months ago

This PR has still regression, that implementation still looks not enough to me. https://github.com/nuxt-modules/i18n/actions/runs/8538876258/job/23392425785

BobbieGoede commented 5 months ago

This PR has still regression, that implementation still looks not enough to me. nuxt-modules/i18n/actions/runs/8538876258/job/23392425785

Normally we wait for URL change to deal with flakiness but that's not possible for no_prefix so this made the test flaky, I added a workaround for this.

meirroth commented 5 months ago

@kazupon When will this fix be released?

BobbieGoede commented 5 months ago

@meirroth I just published v8.3.1 that includes this change