Commit 1baea0c
committed
feat: Avoid defaulting to English if locale is not set
If `locale" is not specified, we prefer to honor an Embedded user's default browser language setting (if it is supported by our web app) instead of always forcing users into viewing our web app in English. Our backend now allows the `user_culture` param to be optional, and if it is blank or omitted then it will tell the web app to prefer the user's default browser language.
Also in this feat:
- Update tests
- Simplify test mock GUIDs
- Correct a few comments1 parent c9ce102 commit 1baea0c
4 files changed
Lines changed: 92 additions & 107 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
6 | | - | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
| 255 | + | |
| 256 | + | |
257 | 257 | | |
258 | | - | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
265 | | - | |
266 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
267 | 271 | | |
268 | | - | |
269 | | - | |
270 | 272 | | |
271 | 273 | | |
272 | 274 | | |
| |||
0 commit comments