Commit 54b71a3
committed
Pre-render locale-specific variants
There are still some places that dynamically determine the user's locale
based on request headers (e.g. /api/v1/user/email), but most pages
should now be prerendered in a specific locale, and the user should be
redirected to those pages when they don't specify the locale in the URL.
This also means that users can now be linked to specific locales.
Theoretically, this should help both with (localised) search ranking, as
well as with performance (which also influences at least Google's
ranking).
A good addition would be a language switcher, so that users who get
linked to a locale that's not theirs, can still switch.1 parent 2bfbea1 commit 54b71a3
File tree
250 files changed
+326
-214
lines changed- functional-tests/tests
- src
- app
- (proper_react)
- [locale]
- (redesign)
- (authenticated)
- admin
- announcements
- emails
- feature-flags
- components
- fxa
- qa-customs
- user/(dashboard)
- dashboard
- DashboardTopBanner
- [[...slug]]
- fix
- high-risk-data-breaches
- [type]
- images
- leaked-passwords
- [type]
- security-recommendations
- [type]
- images
- settings
- [[...slug]]
- images
- panels
- stories
- (public)
- breach-details/[breachName]
- images
- high-priority-data-class-logos
- recommendation-icons
- breaches
- how-it-works
- components
- images
- social-proof-images
- value-prop-images
- de
- fr
- Shell
- images
- assets
- auth/logout
- components/client
- exposure_card
- functions/server
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
250 files changed
+326
-214
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
This file was deleted.
0 commit comments