diff options
| author | Matt Mayer <[email protected]> | 2023-04-05 12:46:04 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-05 07:46:04 +0200 |
| commit | a95fc51279cb942fa9608334ffea52e57732cd3f (patch) | |
| tree | 55eec112cf2f3f552069c887e742fb41c0c488ad /src/locale | |
| parent | ea620467165a9a2247b147edcf46ef0783325977 (diff) | |
| download | faker-a95fc51279cb942fa9608334ffea52e57732cd3f.tar.xz faker-a95fc51279cb942fa9608334ffea52e57732cd3f.zip | |
refactor(locale): rename cz to cs_CZ (#2013)
Diffstat (limited to 'src/locale')
| -rw-r--r-- | src/locale/cs_CZ.ts | 13 | ||||
| -rw-r--r-- | src/locale/cz.ts | 23 | ||||
| -rw-r--r-- | src/locale/index.ts | 6 |
3 files changed, 27 insertions, 15 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, |
