-
Notifications
You must be signed in to change notification settings - Fork 26.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
5d0c3ed
commit 42f838e
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters