diff options
| author | DivisionByZero <[email protected]> | 2023-03-17 23:19:29 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-17 22:19:29 +0000 |
| commit | f6c8ca36b4e288697ae87a8bbdd027cd34947875 (patch) | |
| tree | a4df54c2d9080c569722c359276e7ac50740262b | |
| parent | 085562f6ff38dc576b40555b89700d3761455168 (diff) | |
| download | faker-f6c8ca36b4e288697ae87a8bbdd027cd34947875.tar.xz faker-f6c8ca36b4e288697ae87a8bbdd027cd34947875.zip | |
feat(locale): add `state` and `state_abbr` to `cz` (#1847)
| -rw-r--r-- | src/locales/cz/location/state.ts | 17 | ||||
| -rw-r--r-- | src/locales/cz/location/state_abbr.ts | 6 | ||||
| -rw-r--r-- | test/all_functional.spec.ts | 4 |
3 files changed, 23 insertions, 4 deletions
diff --git a/src/locales/cz/location/state.ts b/src/locales/cz/location/state.ts index d6d1738d..57ec82ae 100644 --- a/src/locales/cz/location/state.ts +++ b/src/locales/cz/location/state.ts @@ -1 +1,16 @@ -export default []; +export default [ + 'Jihočeský kraj', + 'Jihomoravský kraj', + 'Karlovarský kraj', + 'Kraj Vysočina', + 'Královéhradecký kraj', + 'Liberecký kraj', + 'Moravskoslezský kraj', + 'Olomoucký kraj', + 'Pardubický kraj', + 'Plzeňský kraj', + 'Praha', + 'Středočeský kraj', + 'Ústecký kraj', + 'Zlínský kraj', +]; diff --git a/src/locales/cz/location/state_abbr.ts b/src/locales/cz/location/state_abbr.ts index d6d1738d..62fad262 100644 --- a/src/locales/cz/location/state_abbr.ts +++ b/src/locales/cz/location/state_abbr.ts @@ -1 +1,5 @@ -export default []; +import states from './state'; + +// at the time of adding this I was not able to find +// any information on the existance of state abbreviations +export default states; diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts index a938b61c..542b01ee 100644 --- a/test/all_functional.spec.ts +++ b/test/all_functional.spec.ts @@ -28,8 +28,8 @@ const BROKEN_LOCALE_METHODS = { companySuffix: ['az'], }, location: { - state: ['az', 'cz', 'nb_NO', 'sk'], - stateAbbr: ['cz', 'sk'], + state: ['az', 'nb_NO', 'sk'], + stateAbbr: ['sk'], }, random: { locale: '*', // locale() has been pseudo removed |
