aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivisionByZero <[email protected]>2023-03-17 23:19:29 +0100
committerGitHub <[email protected]>2023-03-17 22:19:29 +0000
commitf6c8ca36b4e288697ae87a8bbdd027cd34947875 (patch)
treea4df54c2d9080c569722c359276e7ac50740262b
parent085562f6ff38dc576b40555b89700d3761455168 (diff)
downloadfaker-f6c8ca36b4e288697ae87a8bbdd027cd34947875.tar.xz
faker-f6c8ca36b4e288697ae87a8bbdd027cd34947875.zip
feat(locale): add `state` and `state_abbr` to `cz` (#1847)
-rw-r--r--src/locales/cz/location/state.ts17
-rw-r--r--src/locales/cz/location/state_abbr.ts6
-rw-r--r--test/all_functional.spec.ts4
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