Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locale): add uzbek locale (uz_UZ_latin) #2686

Merged
merged 15 commits into from
Mar 4, 2024
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` | Uzbek (Latin) | `fakerUZ_UZ` |
| `vi` | Vietnamese | `fakerVI` |
| `yo_NG` | Yoruba (Nigeria) | `fakerYO_NG` |
| `zh_CN` | Chinese (China) | `fakerZH_CN` |
Expand Down
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 } from './uz_UZ';
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,
fakerVI,
fakerYO_NG,
fakerZH_CN,
Expand Down Expand Up @@ -207,6 +209,7 @@ export const allFakers = {
tr: fakerTR,
uk: fakerUK,
ur: fakerUR,
uz_UZ: fakerUZ_UZ,
vi: fakerVI,
yo_NG: fakerYO_NG,
zh_CN: fakerZH_CN,
Expand Down
13 changes: 13 additions & 0 deletions src/locale/uz_UZ.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 from '../locales/uz_UZ';

export const faker = new Faker({
locale: [uz_UZ, 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 } from './uz_UZ';
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/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: LocaleDefinition = {
metadata,
person,
};

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

const metadata: PreBuiltMetadataDefinition = {
title: 'Uzbek (Latin)',
code: 'uz_UZ',
matthewmayer marked this conversation as resolved.
Show resolved Hide resolved
language: 'uz',
endonym: "O'zbekcha",
dir: 'ltr',
script: 'Latn',
};

export default metadata;
37 changes: 37 additions & 0 deletions src/locales/uz_UZ/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",
Mirazyzz marked this conversation as resolved.
Show resolved Hide resolved
'sayahatchi',
'strimer',
'tadbirkor',
'talaba',
'tayyorlashchi',
'tuzuvchi',
'vatanparvar',
'veteran',
];
135 changes: 135 additions & 0 deletions src/locales/uz_UZ/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