Skip to content

Commit

Permalink
Added English to list of supported languages
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic committed Apr 24, 2022
1 parent b7aaa6f commit afc581d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 10 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [1.0.0](https://github.com/MilosPaunovic/random-words/compare/develop...1.0.0) (2022-04-23)
## [1.1.0](https://github.com/MilosPaunovic/random-words/compare/1.0.1...1.1.0)

Initial release
* Added English to list of supported languages, closes [#3](https://github.com/MilosPaunovic/random-words/issues/3).

## [1.0.1](https://github.com/MilosPaunovic/random-words/compare/1.0.0...1.0.1)

* Minified dictionary files to reduce footprint, closes [#1](https://github.com/MilosPaunovic/random-words/issues/1).

## [1.0.0](https://github.com/MilosPaunovic/random-words/compare/develop...1.0.0)

* Initial release.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const RANDOM = initialize({ countryCode: 'rs', variation: 'cyrillic' })

Currently available country codes and variations:

| Country | Country code| Variation |
| ----------- | ----------- |-----------|
| Serbia | `rs` | `cyrillic`|

| Country | Country code | Variation |
| ------------- | ------------- |-------------
| Serbia | `rs` | `cyrillic` |
| United States | `en` | |

## Methods

Expand All @@ -43,4 +43,4 @@ Pull requests are welcome. For major changes, please open an issue first to disc

## License

[MIT](https://raw.githubusercontent.com/MilosPaunovic/random-words/develop/LICENSE/)
[MIT](https://raw.githubusercontent.com/MilosPaunovic/random-words/develop/LICENSE/)
1 change: 1 addition & 0 deletions dictionaries/countries/us/en.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lib/helpers/languages.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { WORDS as sr } from '../../dictionaries/countries/rs/sr.js';
import { WORDS as srCyrl } from '../../dictionaries/countries/rs/sr-Cyrl.js';
import { WORDS as en } from '../../dictionaries/countries/us/en.js';

export const LANGUAGES = Object.freeze({
rs: {
default: sr,
cyrillic: srCyrl,
},
us: {
default: en,
},
});
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paunovic/random-words",
"version": "1.0.1",
"version": "1.1.0",
"type": "module",
"description": "Serving random words in any language has never been this easy.",
"author": {
Expand All @@ -26,6 +26,7 @@
},
"keywords": [
"random-words",
"english-words",
"serbian-words"
]
}

0 comments on commit afc581d

Please sign in to comment.