Skip to content

Commit

Permalink
Fix file import example
Browse files Browse the repository at this point in the history
Since there is no file called "en" within the data directory, the current example fails to load and webpack compilation fails.
  • Loading branch information
DysphoricUnicorn authored and marcbachmann committed Aug 12, 2021
1 parent 8608629 commit 4bc62ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ english.object()
You probably don't want to load all languages. So I suggest you to load specific files.

```js
var englishCountries = require('localized-countries')(require('localized-countries/data/en'))
var englishCountries = require('localized-countries')(require('localized-countries/data/en.json'))
englishCountries.get('US') // returns 'United States'
```


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmarcbachmann%2Flocalized-countries.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmarcbachmann%2Flocalized-countries?ref=badge_large)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmarcbachmann%2Flocalized-countries.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmarcbachmann%2Flocalized-countries?ref=badge_large)

0 comments on commit 4bc62ec

Please sign in to comment.