Title
Date: 2024-08-08
Status: accepted
Scope
- [x] backend
- [x] playground
- [x] navigation
- [ ] footer
- [ ] top-level-search
- [ ] contact-module
- [ ] global-components-tools
Context
In the <UserMenu />, which is part of our navigation package, we have implemented a Locale-Switcher/Platform-Switcher that allows users to navigate to the English, German, Spanish or French platform.
Decision
We decided to implement it only for stage and prod because there is no way to change the platform on dev because there is only one URL that is accepted via a request (the specific lambda URL) and because we don't have a CDN there. This makes it complicated to implement it for dev.
Consequences
We encourage you to test different languages manually on localhost (set your preferred locale as a subdomain, e.g. "de.localhost:3000") or test it on stage. You cannot switch the platform with our Locale-Switcher/Platform-Switcher local and on dev.