Skip to content

Commit

Permalink
fix: validate initialLocale before using it (#217)
Browse files Browse the repository at this point in the history
* Added a test with an invalid initial locale

* Added a dependency on @formatjs/intl-getcanonicallocales

* Validating initial locale before using it

* Fixed focused test
  • Loading branch information
marekdedic committed Sep 3, 2023
1 parent 46b025c commit ebeec58
Show file tree
Hide file tree
Showing 4 changed files with 1,164 additions and 1,093 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"typescript": "^4.9.3"
},
"dependencies": {
"@formatjs/intl-getcanonicallocales": "^2.2.1",
"cli-color": "^2.0.3",
"deepmerge": "^4.2.2",
"estree-walker": "^2",
Expand Down

0 comments on commit ebeec58

Please sign in to comment.