Skip to content

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

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

Merged
merged 15 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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