Replies: 2 comments 1 reply
-
Is https://starlight.astro.build/guides/i18n/ the same workaround or could be a plug-and-play solution for Astro? |
Beta Was this translation helpful? Give feedback.
1 reply
-
This proposal has been accepted and advanced to Stage 2. #701 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Summary
Localised/i18n routes, a la https://nextjs.org/docs/pages/building-your-application/routing/internationalization
Background & Motivation
Localisation is a key requirement of numerous websites. It's the big thing that comes up as a vital missing feature when discussing Astro. There are workarounds, but they lack some of niceities folks have come to expect from i18n solutions.
There is also a growing community effort across various projects, however many have to resort to odd hacks and limitations due to working purely with the integrations APIs. They also often go beyond simple localised routing, and provide opinionated solutions for how to handle localising strings.
Localisation should be a first class citizen.
The current built-in solutions have four main flaws:
The Astro APIs have evolved to a point where many of these problems could be solved in quite a simple way.
Goals
Core
Stretch
Accept-Language
header in SSRExample
Additional configuration:
Astro global update with a Locale object availabe at
Astro.locale
orAstro.i18n
Experimental Implementation:
SudoCat/astro#2
Beta Was this translation helpful? Give feedback.
All reactions