aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2023-04-05 12:46:04 +0700
committerGitHub <[email protected]>2023-04-05 07:46:04 +0200
commita95fc51279cb942fa9608334ffea52e57732cd3f (patch)
tree55eec112cf2f3f552069c887e742fb41c0c488ad /src
parentea620467165a9a2247b147edcf46ef0783325977 (diff)
downloadfaker-a95fc51279cb942fa9608334ffea52e57732cd3f.tar.xz
faker-a95fc51279cb942fa9608334ffea52e57732cd3f.zip
refactor(locale): rename cz to cs_CZ (#2013)
Diffstat (limited to 'src')
-rw-r--r--src/locale/cs_CZ.ts13
-rw-r--r--src/locale/cz.ts23
-rw-r--r--src/locale/index.ts6
-rw-r--r--src/locales/cs_CZ/company/adjective.ts (renamed from src/locales/cz/company/adjective.ts)0
-rw-r--r--src/locales/cs_CZ/company/descriptor.ts (renamed from src/locales/cz/company/descriptor.ts)0
-rw-r--r--src/locales/cs_CZ/company/index.ts (renamed from src/locales/cz/company/index.ts)0
-rw-r--r--src/locales/cs_CZ/company/name_patterns.ts (renamed from src/locales/cz/company/name_patterns.ts)0
-rw-r--r--src/locales/cs_CZ/company/noun.ts (renamed from src/locales/cz/company/noun.ts)0
-rw-r--r--src/locales/cs_CZ/company/suffix.ts (renamed from src/locales/cz/company/suffix.ts)0
-rw-r--r--src/locales/cs_CZ/date/index.ts (renamed from src/locales/cz/date/index.ts)0
-rw-r--r--src/locales/cs_CZ/date/month.ts (renamed from src/locales/cz/date/month.ts)0
-rw-r--r--src/locales/cs_CZ/date/weekday.ts (renamed from src/locales/cz/date/weekday.ts)0
-rw-r--r--src/locales/cs_CZ/index.ts (renamed from src/locales/cz/index.ts)4
-rw-r--r--src/locales/cs_CZ/internet/domain_suffix.ts (renamed from src/locales/cz/internet/domain_suffix.ts)0
-rw-r--r--src/locales/cs_CZ/internet/free_email.ts (renamed from src/locales/cz/internet/free_email.ts)0
-rw-r--r--src/locales/cs_CZ/internet/index.ts (renamed from src/locales/cz/internet/index.ts)0
-rw-r--r--src/locales/cs_CZ/location/building_number.ts (renamed from src/locales/cz/location/building_number.ts)0
-rw-r--r--src/locales/cs_CZ/location/city.ts (renamed from src/locales/cz/location/city.ts)0
-rw-r--r--src/locales/cs_CZ/location/city_name.ts (renamed from src/locales/cz/location/city_name.ts)0
-rw-r--r--src/locales/cs_CZ/location/country.ts (renamed from src/locales/cz/location/country.ts)0
-rw-r--r--src/locales/cs_CZ/location/default_country.ts (renamed from src/locales/cz/location/default_country.ts)0
-rw-r--r--src/locales/cs_CZ/location/index.ts (renamed from src/locales/cz/location/index.ts)0
-rw-r--r--src/locales/cs_CZ/location/postcode.ts (renamed from src/locales/cz/location/postcode.ts)0
-rw-r--r--src/locales/cs_CZ/location/secondary_address.ts (renamed from src/locales/cz/location/secondary_address.ts)0
-rw-r--r--src/locales/cs_CZ/location/state.ts (renamed from src/locales/cz/location/state.ts)0
-rw-r--r--src/locales/cs_CZ/location/state_abbr.ts (renamed from src/locales/cz/location/state_abbr.ts)0
-rw-r--r--src/locales/cs_CZ/location/street.ts (renamed from src/locales/cz/location/street.ts)0
-rw-r--r--src/locales/cs_CZ/location/street_address.ts (renamed from src/locales/cz/location/street_address.ts)0
-rw-r--r--src/locales/cs_CZ/location/street_name.ts (renamed from src/locales/cz/location/street_name.ts)0
-rw-r--r--src/locales/cs_CZ/lorem/index.ts (renamed from src/locales/cz/lorem/index.ts)0
-rw-r--r--src/locales/cs_CZ/lorem/words.ts (renamed from src/locales/cz/lorem/words.ts)0
-rw-r--r--src/locales/cs_CZ/metadata.ts (renamed from src/locales/cz/metadata.ts)2
-rw-r--r--src/locales/cs_CZ/person/female_first_name.ts (renamed from src/locales/cz/person/female_first_name.ts)0
-rw-r--r--src/locales/cs_CZ/person/female_last_name.ts (renamed from src/locales/cz/person/female_last_name.ts)0
-rw-r--r--src/locales/cs_CZ/person/female_last_name_patterns.ts (renamed from src/locales/cz/person/female_last_name_patterns.ts)0
-rw-r--r--src/locales/cs_CZ/person/female_prefix.ts (renamed from src/locales/cz/person/female_prefix.ts)0
-rw-r--r--src/locales/cs_CZ/person/first_name.ts (renamed from src/locales/cz/person/first_name.ts)0
-rw-r--r--src/locales/cs_CZ/person/index.ts (renamed from src/locales/cz/person/index.ts)0
-rw-r--r--src/locales/cs_CZ/person/last_name.ts (renamed from src/locales/cz/person/last_name.ts)0
-rw-r--r--src/locales/cs_CZ/person/male_first_name.ts (renamed from src/locales/cz/person/male_first_name.ts)0
-rw-r--r--src/locales/cs_CZ/person/male_last_name.ts (renamed from src/locales/cz/person/male_last_name.ts)0
-rw-r--r--src/locales/cs_CZ/person/male_last_name_patterns.ts (renamed from src/locales/cz/person/male_last_name_patterns.ts)0
-rw-r--r--src/locales/cs_CZ/person/male_prefix.ts (renamed from src/locales/cz/person/male_prefix.ts)0
-rw-r--r--src/locales/cs_CZ/person/name.ts (renamed from src/locales/cz/person/name.ts)0
-rw-r--r--src/locales/cs_CZ/person/prefix.ts (renamed from src/locales/cz/person/prefix.ts)0
-rw-r--r--src/locales/cs_CZ/person/suffix.ts (renamed from src/locales/cz/person/suffix.ts)0
-rw-r--r--src/locales/cs_CZ/person/title.ts (renamed from src/locales/cz/person/title.ts)0
-rw-r--r--src/locales/cs_CZ/phone_number/formats.ts (renamed from src/locales/cz/phone_number/formats.ts)0
-rw-r--r--src/locales/cs_CZ/phone_number/index.ts (renamed from src/locales/cz/phone_number/index.ts)0
-rw-r--r--src/locales/index.ts2
50 files changed, 31 insertions, 19 deletions
diff --git a/src/locale/cs_CZ.ts b/src/locale/cs_CZ.ts
new file mode 100644
index 00000000..4e56c6d4
--- /dev/null
+++ b/src/locale/cs_CZ.ts
@@ -0,0 +1,13 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+
+import { Faker } from '../faker';
+import base from '../locales/base';
+import cs_CZ from '../locales/cs_CZ';
+import en from '../locales/en';
+
+export const faker = new Faker({
+ locale: [cs_CZ, en, base],
+});
diff --git a/src/locale/cz.ts b/src/locale/cz.ts
index 19b35d71..f7227d82 100644
--- a/src/locale/cz.ts
+++ b/src/locale/cz.ts
@@ -1,13 +1,12 @@
-/*
- * This file is automatically generated.
- * Run 'pnpm run generate:locales' to update.
- */
+import { deprecated } from '../internal/deprecated';
+import { faker as cs_CZ } from './cs_CZ';
-import { Faker } from '../faker';
-import base from '../locales/base';
-import cz from '../locales/cz';
-import en from '../locales/en';
-
-export const faker = new Faker({
- locale: [cz, en, base],
-});
+export const faker = (() => {
+ deprecated({
+ deprecated: "import { faker } from '@faker-js/faker/locale/cz'",
+ proposed: "import { faker } from '@faker-js/faker/locale/cs_CZ'",
+ since: '8.0',
+ until: '9.0',
+ });
+ return cs_CZ;
+})();
diff --git a/src/locale/index.ts b/src/locale/index.ts
index f5b7653f..8772dca6 100644
--- a/src/locale/index.ts
+++ b/src/locale/index.ts
@@ -7,7 +7,7 @@ import { faker as fakerAF_ZA } from './af_ZA';
import { faker as fakerAR } from './ar';
import { faker as fakerAZ } from './az';
import { faker as fakerBASE } from './base';
-import { faker as fakerCZ } from './cz';
+import { faker as fakerCS_CZ } from './cs_CZ';
import { faker as fakerDE } from './de';
import { faker as fakerDE_AT } from './de_AT';
import { faker as fakerDE_CH } from './de_CH';
@@ -71,7 +71,7 @@ export {
fakerAR,
fakerAZ,
fakerBASE,
- fakerCZ,
+ fakerCS_CZ,
fakerDE,
fakerDE_AT,
fakerDE_CH,
@@ -136,7 +136,7 @@ export const allFakers = {
ar: fakerAR,
az: fakerAZ,
base: fakerBASE,
- cz: fakerCZ,
+ cs_CZ: fakerCS_CZ,
de: fakerDE,
de_AT: fakerDE_AT,
de_CH: fakerDE_CH,
diff --git a/src/locales/cz/company/adjective.ts b/src/locales/cs_CZ/company/adjective.ts
index f1faf2c0..f1faf2c0 100644
--- a/src/locales/cz/company/adjective.ts
+++ b/src/locales/cs_CZ/company/adjective.ts
diff --git a/src/locales/cz/company/descriptor.ts b/src/locales/cs_CZ/company/descriptor.ts
index 4b3c8c92..4b3c8c92 100644
--- a/src/locales/cz/company/descriptor.ts
+++ b/src/locales/cs_CZ/company/descriptor.ts
diff --git a/src/locales/cz/company/index.ts b/src/locales/cs_CZ/company/index.ts
index 8b8ebbc4..8b8ebbc4 100644
--- a/src/locales/cz/company/index.ts
+++ b/src/locales/cs_CZ/company/index.ts
diff --git a/src/locales/cz/company/name_patterns.ts b/src/locales/cs_CZ/company/name_patterns.ts
index d6eda221..d6eda221 100644
--- a/src/locales/cz/company/name_patterns.ts
+++ b/src/locales/cs_CZ/company/name_patterns.ts
diff --git a/src/locales/cz/company/noun.ts b/src/locales/cs_CZ/company/noun.ts
index b289a85a..b289a85a 100644
--- a/src/locales/cz/company/noun.ts
+++ b/src/locales/cs_CZ/company/noun.ts
diff --git a/src/locales/cz/company/suffix.ts b/src/locales/cs_CZ/company/suffix.ts
index 9e50cd78..9e50cd78 100644
--- a/src/locales/cz/company/suffix.ts
+++ b/src/locales/cs_CZ/company/suffix.ts
diff --git a/src/locales/cz/date/index.ts b/src/locales/cs_CZ/date/index.ts
index cd296b42..cd296b42 100644
--- a/src/locales/cz/date/index.ts
+++ b/src/locales/cs_CZ/date/index.ts
diff --git a/src/locales/cz/date/month.ts b/src/locales/cs_CZ/date/month.ts
index 1ee4048b..1ee4048b 100644
--- a/src/locales/cz/date/month.ts
+++ b/src/locales/cs_CZ/date/month.ts
diff --git a/src/locales/cz/date/weekday.ts b/src/locales/cs_CZ/date/weekday.ts
index 92bde382..92bde382 100644
--- a/src/locales/cz/date/weekday.ts
+++ b/src/locales/cs_CZ/date/weekday.ts
diff --git a/src/locales/cz/index.ts b/src/locales/cs_CZ/index.ts
index 28f0a84b..c3770c00 100644
--- a/src/locales/cz/index.ts
+++ b/src/locales/cs_CZ/index.ts
@@ -12,7 +12,7 @@ import metadata from './metadata';
import person from './person';
import phone_number from './phone_number';
-const cz: LocaleDefinition = {
+const cs_CZ: LocaleDefinition = {
company,
date,
internet,
@@ -23,4 +23,4 @@ const cz: LocaleDefinition = {
phone_number,
};
-export default cz;
+export default cs_CZ;
diff --git a/src/locales/cz/internet/domain_suffix.ts b/src/locales/cs_CZ/internet/domain_suffix.ts
index f22b0233..f22b0233 100644
--- a/src/locales/cz/internet/domain_suffix.ts
+++ b/src/locales/cs_CZ/internet/domain_suffix.ts
diff --git a/src/locales/cz/internet/free_email.ts b/src/locales/cs_CZ/internet/free_email.ts
index e893f514..e893f514 100644
--- a/src/locales/cz/internet/free_email.ts
+++ b/src/locales/cs_CZ/internet/free_email.ts
diff --git a/src/locales/cz/internet/index.ts b/src/locales/cs_CZ/internet/index.ts
index 8b0ef73e..8b0ef73e 100644
--- a/src/locales/cz/internet/index.ts
+++ b/src/locales/cs_CZ/internet/index.ts
diff --git a/src/locales/cz/location/building_number.ts b/src/locales/cs_CZ/location/building_number.ts
index 4b74b7de..4b74b7de 100644
--- a/src/locales/cz/location/building_number.ts
+++ b/src/locales/cs_CZ/location/building_number.ts
diff --git a/src/locales/cz/location/city.ts b/src/locales/cs_CZ/location/city.ts
index ad43b68f..ad43b68f 100644
--- a/src/locales/cz/location/city.ts
+++ b/src/locales/cs_CZ/location/city.ts
diff --git a/src/locales/cz/location/city_name.ts b/src/locales/cs_CZ/location/city_name.ts
index de71b716..de71b716 100644
--- a/src/locales/cz/location/city_name.ts
+++ b/src/locales/cs_CZ/location/city_name.ts
diff --git a/src/locales/cz/location/country.ts b/src/locales/cs_CZ/location/country.ts
index 9ac6fede..9ac6fede 100644
--- a/src/locales/cz/location/country.ts
+++ b/src/locales/cs_CZ/location/country.ts
diff --git a/src/locales/cz/location/default_country.ts b/src/locales/cs_CZ/location/default_country.ts
index 6ae65adc..6ae65adc 100644
--- a/src/locales/cz/location/default_country.ts
+++ b/src/locales/cs_CZ/location/default_country.ts
diff --git a/src/locales/cz/location/index.ts b/src/locales/cs_CZ/location/index.ts
index 7dd25913..7dd25913 100644
--- a/src/locales/cz/location/index.ts
+++ b/src/locales/cs_CZ/location/index.ts
diff --git a/src/locales/cz/location/postcode.ts b/src/locales/cs_CZ/location/postcode.ts
index a1ffc2d1..a1ffc2d1 100644
--- a/src/locales/cz/location/postcode.ts
+++ b/src/locales/cs_CZ/location/postcode.ts
diff --git a/src/locales/cz/location/secondary_address.ts b/src/locales/cs_CZ/location/secondary_address.ts
index 6f2a5cc8..6f2a5cc8 100644
--- a/src/locales/cz/location/secondary_address.ts
+++ b/src/locales/cs_CZ/location/secondary_address.ts
diff --git a/src/locales/cz/location/state.ts b/src/locales/cs_CZ/location/state.ts
index 57ec82ae..57ec82ae 100644
--- a/src/locales/cz/location/state.ts
+++ b/src/locales/cs_CZ/location/state.ts
diff --git a/src/locales/cz/location/state_abbr.ts b/src/locales/cs_CZ/location/state_abbr.ts
index 62fad262..62fad262 100644
--- a/src/locales/cz/location/state_abbr.ts
+++ b/src/locales/cs_CZ/location/state_abbr.ts
diff --git a/src/locales/cz/location/street.ts b/src/locales/cs_CZ/location/street.ts
index 30a9a5dd..30a9a5dd 100644
--- a/src/locales/cz/location/street.ts
+++ b/src/locales/cs_CZ/location/street.ts
diff --git a/src/locales/cz/location/street_address.ts b/src/locales/cs_CZ/location/street_address.ts
index 437f20dd..437f20dd 100644
--- a/src/locales/cz/location/street_address.ts
+++ b/src/locales/cs_CZ/location/street_address.ts
diff --git a/src/locales/cz/location/street_name.ts b/src/locales/cs_CZ/location/street_name.ts
index a71e4da2..a71e4da2 100644
--- a/src/locales/cz/location/street_name.ts
+++ b/src/locales/cs_CZ/location/street_name.ts
diff --git a/src/locales/cz/lorem/index.ts b/src/locales/cs_CZ/lorem/index.ts
index 29ba4cd0..29ba4cd0 100644
--- a/src/locales/cz/lorem/index.ts
+++ b/src/locales/cs_CZ/lorem/index.ts
diff --git a/src/locales/cz/lorem/words.ts b/src/locales/cs_CZ/lorem/words.ts
index 8c8b660c..8c8b660c 100644
--- a/src/locales/cz/lorem/words.ts
+++ b/src/locales/cs_CZ/lorem/words.ts
diff --git a/src/locales/cz/metadata.ts b/src/locales/cs_CZ/metadata.ts
index af6a36bc..98ab47df 100644
--- a/src/locales/cz/metadata.ts
+++ b/src/locales/cs_CZ/metadata.ts
@@ -1,7 +1,7 @@
import type { MetadataDefinitions } from '../..';
const metadata: MetadataDefinitions = {
- title: 'Czech',
+ title: 'Czech (Czechia)',
};
export default metadata;
diff --git a/src/locales/cz/person/female_first_name.ts b/src/locales/cs_CZ/person/female_first_name.ts
index 951b6a3a..951b6a3a 100644
--- a/src/locales/cz/person/female_first_name.ts
+++ b/src/locales/cs_CZ/person/female_first_name.ts
diff --git a/src/locales/cz/person/female_last_name.ts b/src/locales/cs_CZ/person/female_last_name.ts
index f8aae90a..f8aae90a 100644
--- a/src/locales/cz/person/female_last_name.ts
+++ b/src/locales/cs_CZ/person/female_last_name.ts
diff --git a/src/locales/cz/person/female_last_name_patterns.ts b/src/locales/cs_CZ/person/female_last_name_patterns.ts
index 3f920674..3f920674 100644
--- a/src/locales/cz/person/female_last_name_patterns.ts
+++ b/src/locales/cs_CZ/person/female_last_name_patterns.ts
diff --git a/src/locales/cz/person/female_prefix.ts b/src/locales/cs_CZ/person/female_prefix.ts
index f499187e..f499187e 100644
--- a/src/locales/cz/person/female_prefix.ts
+++ b/src/locales/cs_CZ/person/female_prefix.ts
diff --git a/src/locales/cz/person/first_name.ts b/src/locales/cs_CZ/person/first_name.ts
index 3c787970..3c787970 100644
--- a/src/locales/cz/person/first_name.ts
+++ b/src/locales/cs_CZ/person/first_name.ts
diff --git a/src/locales/cz/person/index.ts b/src/locales/cs_CZ/person/index.ts
index 80ee56cc..80ee56cc 100644
--- a/src/locales/cz/person/index.ts
+++ b/src/locales/cs_CZ/person/index.ts
diff --git a/src/locales/cz/person/last_name.ts b/src/locales/cs_CZ/person/last_name.ts
index 6ff69f60..6ff69f60 100644
--- a/src/locales/cz/person/last_name.ts
+++ b/src/locales/cs_CZ/person/last_name.ts
diff --git a/src/locales/cz/person/male_first_name.ts b/src/locales/cs_CZ/person/male_first_name.ts
index 5419e9ff..5419e9ff 100644
--- a/src/locales/cz/person/male_first_name.ts
+++ b/src/locales/cs_CZ/person/male_first_name.ts
diff --git a/src/locales/cz/person/male_last_name.ts b/src/locales/cs_CZ/person/male_last_name.ts
index 7fce5ae1..7fce5ae1 100644
--- a/src/locales/cz/person/male_last_name.ts
+++ b/src/locales/cs_CZ/person/male_last_name.ts
diff --git a/src/locales/cz/person/male_last_name_patterns.ts b/src/locales/cs_CZ/person/male_last_name_patterns.ts
index 75cb2c10..75cb2c10 100644
--- a/src/locales/cz/person/male_last_name_patterns.ts
+++ b/src/locales/cs_CZ/person/male_last_name_patterns.ts
diff --git a/src/locales/cz/person/male_prefix.ts b/src/locales/cs_CZ/person/male_prefix.ts
index f499187e..f499187e 100644
--- a/src/locales/cz/person/male_prefix.ts
+++ b/src/locales/cs_CZ/person/male_prefix.ts
diff --git a/src/locales/cz/person/name.ts b/src/locales/cs_CZ/person/name.ts
index eb76dabb..eb76dabb 100644
--- a/src/locales/cz/person/name.ts
+++ b/src/locales/cs_CZ/person/name.ts
diff --git a/src/locales/cz/person/prefix.ts b/src/locales/cs_CZ/person/prefix.ts
index cb1d846e..cb1d846e 100644
--- a/src/locales/cz/person/prefix.ts
+++ b/src/locales/cs_CZ/person/prefix.ts
diff --git a/src/locales/cz/person/suffix.ts b/src/locales/cs_CZ/person/suffix.ts
index 20ab0b67..20ab0b67 100644
--- a/src/locales/cz/person/suffix.ts
+++ b/src/locales/cs_CZ/person/suffix.ts
diff --git a/src/locales/cz/person/title.ts b/src/locales/cs_CZ/person/title.ts
index 6372cc11..6372cc11 100644
--- a/src/locales/cz/person/title.ts
+++ b/src/locales/cs_CZ/person/title.ts
diff --git a/src/locales/cz/phone_number/formats.ts b/src/locales/cs_CZ/phone_number/formats.ts
index 813dc224..813dc224 100644
--- a/src/locales/cz/phone_number/formats.ts
+++ b/src/locales/cs_CZ/phone_number/formats.ts
diff --git a/src/locales/cz/phone_number/index.ts b/src/locales/cs_CZ/phone_number/index.ts
index bf48a8b5..bf48a8b5 100644
--- a/src/locales/cz/phone_number/index.ts
+++ b/src/locales/cs_CZ/phone_number/index.ts
diff --git a/src/locales/index.ts b/src/locales/index.ts
index fa5ea18a..b0f87395 100644
--- a/src/locales/index.ts
+++ b/src/locales/index.ts
@@ -7,7 +7,7 @@ export { default as af_ZA } from './af_ZA';
export { default as ar } from './ar';
export { default as az } from './az';
export { default as base } from './base';
-export { default as cz } from './cz';
+export { default as cs_CZ } from './cs_CZ';
export { default as de } from './de';
export { default as de_AT } from './de_AT';
export { default as de_CH } from './de_CH';