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 1 commit
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
2 changes: 1 addition & 1 deletion docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +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` |
| `uz_UZ_latin` | Uzbek (Latin) | `fakerUZ_UZ_latin` |
| `vi` | Vietnamese | `fakerVI` |
| `yo_NG` | Yoruba (Nigeria) | `fakerYO_NG` |
| `zh_CN` | Chinese (China) | `fakerZH_CN` |
Expand Down
6 changes: 3 additions & 3 deletions src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +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 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 @@ -137,7 +137,7 @@ export {
fakerTR,
fakerUK,
fakerUR,
fakerUZ_UZ,
fakerUZ_UZ_latin,
fakerVI,
fakerYO_NG,
fakerZH_CN,
Expand Down Expand Up @@ -209,7 +209,7 @@ export const allFakers = {
tr: fakerTR,
uk: fakerUK,
ur: fakerUR,
uz_UZ: fakerUZ_UZ,
uz_UZ_latin: fakerUZ_UZ_latin,
vi: fakerVI,
yo_NG: fakerYO_NG,
zh_CN: fakerZH_CN,
Expand Down
2 changes: 1 addition & 1 deletion src/locale/uz_UZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { Faker } from '../faker';
import base from '../locales/base';
import en from '../locales/en';
import uz_UZ from '../locales/uz_UZ';
import uz_UZ from '../locales/uz_UZ_latin';

export const faker = new Faker({
locale: [uz_UZ, en, base],
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],
});
2 changes: 1 addition & 1 deletion src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +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 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
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import type { LocaleDefinition } from '../..';
import metadata from './metadata';
import person from './person';

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

export default uz_UZ;
export default uz_UZ_latin;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { PreBuiltMetadataDefinitionForCountry } from '../../definitions/met

const metadata: PreBuiltMetadataDefinitionForCountry = {
title: 'Uzbek (Latin)',
code: 'uz_UZ',
code: 'uz_UZ_latin',
country: 'UZ',
language: 'uz',
endonym: "O'zbekcha",
Expand Down