Closed layout-ch closed 2 weeks ago
Astro v4.16.7 Node v22.9.0 System macOS (arm64) Package Manager npm Output hybrid Adapter @astrojs/vercel/serverless Integrations astro-icon @sanity/astro @astrojs/react
No response
In Astro v4.15.8, Astro.currentLocale always returns the default locale regardless of the current route's language. This worked correctly in v4.8.7.
Steps to reproduce:
Expected behavior:
Actual behavior:
Astro.currentLocale should return the current route's locale
-
I had the same problem in 4.16.0, but it seems like it was fixed in 4.16.4 in this PR: https://github.com/withastro/astro/pull/12199
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
In Astro v4.15.8, Astro.currentLocale always returns the default locale regardless of the current route's language. This worked correctly in v4.8.7.
Steps to reproduce:
Expected behavior:
Actual behavior:
What's the expected result?
Astro.currentLocale should return the current route's locale
Link to Minimal Reproducible Example
-
Participation