rsnext/test/integration/i18n-support
Eric Burel 42f838e156
Add check for duplicate locales (#37485)
## Bug

- [X] Related issues linked using `fixes #37483`
- [ ] Integration tests added
- [x] Errors have helpful link attached, see `contributing.md`

Duplicate locales will lead to an obscure error message at build time, here I caught them earlier.
Using a Set sounded the terser and fastest approach, but it won't tell which locale is duplicated.

Also I've noticed that the "Array.isArray" check happens twice on i18n.locales? Maybe it's on purpose?

Fixes #37483 

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-06-07 17:58:19 +00:00
..
pages test: upgrade playwright-chromium from 1.14.1 to 1.22.2 (#37436) 2022-06-06 23:37:01 -05:00
test Add check for duplicate locales (#37485) 2022-06-07 17:58:19 +00:00
next.config.js Fix external redirect with i18n domains (#27415) 2021-07-22 18:32:12 +00:00
server.js Add locale: false for custom-routes + i18n (#19164) 2020-11-14 03:35:42 +00:00