Skip to content

Commit

Permalink
Merge branch 'next' into test/fix/finance/amount
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Mar 5, 2024
2 parents 2d3063f + 489bbc2 commit a17196c
Show file tree
Hide file tree
Showing 28 changed files with 1,032 additions and 1,328 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = defineConfig({
'error',
{ default: 'array-simple', readonly: 'generic' },
],
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/naming-convention': [
Expand Down
1 change: 1 addition & 0 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ In this example there are 5 locales. Each of these is checked in order, and the
| `tr` | Turkish | `fakerTR` |
| `uk` | Ukrainian | `fakerUK` |
| `ur` | Urdu | `fakerUR` |
| `uz_UZ_latin` | Uzbek (Uzbekistan, Latin) | `fakerUZ_UZ_latin` |
| `vi` | Vietnamese | `fakerVI` |
| `yo_NG` | Yoruba (Nigeria) | `fakerYO_NG` |
| `zh_CN` | Chinese (China) | `fakerZH_CN` |
Expand Down
14 changes: 14 additions & 0 deletions docs/guide/upgrading_v9/2704.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Remove deprecated date methods

Removed deprecated date methods

| old | replacement |
| -------------------------------------- | ------------------------------------------ |
| `faker.date.past(years, refDate)` | `faker.date.past({ years, refDate })` |
| `faker.date.future(years, refDate)` | `faker.date.future({ years, refDate })` |
| `faker.date.between(from, to)` | `faker.date.between({ from, to })` |
| `faker.date.betweens(from, to, count)` | `faker.date.betweens({ from, to, count })` |
| `faker.date.recent(days, refDate)` | `faker.date.recent({ days, refDate })` |
| `faker.date.soon(days, refDate)` | `faker.date.soon({ days, refDate })` |
| `faker.date.month({ abbr })` | `faker.date.month({ abbreviated })` |
| `faker.date.weekday({ abbr })` | `faker.date.weekday({ abbreviated })` |
7 changes: 7 additions & 0 deletions docs/guide/upgrading_v9/2712.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Remove deprecated phone methods

Removed deprecated phone methods

| old | replacement |
| ---------------------------- | -------------------------------------------------------------------------------- |
| `faker.phone.number(format)` | `faker.phone.number()`, `faker.string.numeric()` or `faker.helpers.fromRegExp()` |
3 changes: 3 additions & 0 deletions src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import { faker as fakerTH } from './th';
import { faker as fakerTR } from './tr';
import { faker as fakerUK } from './uk';
import { faker as fakerUR } from './ur';
import { faker as fakerUZ_UZ_latin } from './uz_UZ_latin';
import { faker as fakerVI } from './vi';
import { faker as fakerYO_NG } from './yo_NG';
import { faker as fakerZH_CN } from './zh_CN';
Expand Down Expand Up @@ -136,6 +137,7 @@ export {
fakerTR,
fakerUK,
fakerUR,
fakerUZ_UZ_latin,
fakerVI,
fakerYO_NG,
fakerZH_CN,
Expand Down Expand Up @@ -207,6 +209,7 @@ export const allFakers = {
tr: fakerTR,
uk: fakerUK,
ur: fakerUR,
uz_UZ_latin: fakerUZ_UZ_latin,
vi: fakerVI,
yo_NG: fakerYO_NG,
zh_CN: fakerZH_CN,
Expand Down
13 changes: 13 additions & 0 deletions src/locale/uz_UZ_latin.ts
Original file line number Diff line number Diff line change
@@ -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 en from '../locales/en';
import uz_UZ_latin from '../locales/uz_UZ_latin';

export const faker = new Faker({
locale: [uz_UZ_latin, en, base],
});
1 change: 1 addition & 0 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export { default as th } from './th';
export { default as tr } from './tr';
export { default as uk } from './uk';
export { default as ur } from './ur';
export { default as uz_UZ_latin } from './uz_UZ_latin';
export { default as vi } from './vi';
export { default as yo_NG } from './yo_NG';
export { default as zh_CN } from './zh_CN';
Expand Down
14 changes: 14 additions & 0 deletions src/locales/uz_UZ_latin/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocaleDefinition } from '../..';
import metadata from './metadata';
import person from './person';

const uz_UZ_latin: LocaleDefinition = {
metadata,
person,
};

export default uz_UZ_latin;
14 changes: 14 additions & 0 deletions src/locales/uz_UZ_latin/metadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { PreBuiltMetadataDefinitionForCountry } from '../../definitions/metadata';

const metadata: PreBuiltMetadataDefinitionForCountry = {
title: 'Uzbek (Uzbekistan, Latin)',
code: 'uz_UZ_latin',
country: 'UZ',
language: 'uz',
variant: 'latin',
endonym: "O'zbekcha",
dir: 'ltr',
script: 'Latn',
};

export default metadata;
37 changes: 37 additions & 0 deletions src/locales/uz_UZ_latin/person/bio_parts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
export default [
'bitiruvchi',
'biznes egasi',
'blogger',
'do‘st',
'dizayner',
'dasturchi',
'ekolog',
'faoliyatchi',
'falsafachi',
'film ishqibi',
'fotoqrafer',
'geymer',
'ilmshunos',
'jamolchi',
'kinorejissyor',
'model',
'muallif',
'mualim',
'muhandis',
'musiqachi',
'o‘ila odobi',
'o‘qituvchi',
'o‘yinchim',
'odam',
'qo‘shiqchi',
'rivojlanuvchi',
"san'atkor",
'sayahatchi',
'strimer',
'tadbirkor',
'talaba',
'tayyorlashchi',
'tuzuvchi',
'vatanparvar',
'veteran',
];
135 changes: 135 additions & 0 deletions src/locales/uz_UZ_latin/person/female_first_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
export default [
'Adiba',
'Afzuna',
'Afruza',
'Akifa',
'Alima',
'Anora',
'Asal',
'Asila',
'Asliya',
'Asolat',
'Aziza',
'Barchinoy',
'Barno',
'Begoyim',
'Binafsha',
'Davriya',
'Dilafruz',
'Dilbar',
'Dildora',
'Dilfuza',
'Dilnoza',
'Dilorom',
'Dilrabo',
'Dilso‘z',
'Diyora',
'Durdona',
'E’zoza',
'Fazilat',
'Farangiz',
'Farida',
'Feruza',
'Fotima',
'Gavxar',
'Gulbaxor',
'Gulchexra',
'Guljamol',
'Guljaxon',
'Gulnoza',
'Gulnora',
'Guloy',
'Gulsora',
'Gulzira',
'Gulzoda',
'Hanifa',
'Halima',
'Hilola',
'Hosiyat',
'Hurshida',
'Husida',
'Husnida',
'Husniya',
'Husnora',
'Iffar',
'Ifora',
'Iroda',
'Jamila',
'Jasmina',
'Jumagul',
'Kamola',
'Karima',
'Komila',
'Kumush',
'Latofat',
'Laylo',
'Lobar',
'Lola',
'Lutfiya',
'Madina',
'Malika',
'Maloxat',
'Mashxura',
'Mavluda',
'Maxbuba',
'Maxfuza',
'Maxsuma',
'Moxigul',
'Moxidil',
'Moxina',
'Moxinur',
'Moxira',
'Muazzam',
'Muattar',
'Mubina',
'Muyassar',
'Nafisa',
'Nargiza',
'Nasiba',
'Nigora',
'Nilufar',
'Nodira',
'Noila',
'Nozima',
'Omina',
'Orzu',
'Oyga',
'Oysha',
'Ozoda',
'Oynur',
'Qizilgul',
'Ramziya',
'Rasifa',
'Ra’no',
'Rayona',
'Rayxona',
'Robiya',
'Roziya',
'Saboxat',
'Saboxon',
'Sadoqat',
'Saida',
'Samina',
'Samira',
'Samiya',
'Sanobar',
'Saodat',
'Sarvinoz',
'Saxida',
'Sayyora',
'Sevara',
'Safiya',
'Safura',
'Skipped',
'Suyuna',
'Tug‘ol',
'Uqbaloy',
'Umida',
'Uzbegim',
'Vasliddin',
'Waqila',
'Xalima',
'Yozida',
'Zilola',
'Zuxra',
];
Loading

0 comments on commit a17196c

Please sign in to comment.