Skip to content

Commit

Permalink
fix: consistent locale names (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Mar 7, 2023
1 parent 4f720ef commit cf2ce68
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const customFaker = new Faker({
| `de` | German | `fakerDE` |
| `de_AT` | German (Austria) | `fakerDE_AT` |
| `de_CH` | German (Switzerland) | `fakerDE_CH` |
| `dv` | Dhivehi | `fakerDV` |
| `dv` | Maldivian | `fakerDV` |
| `el` | Greek | `fakerEL` |
| `en` | English | `fakerEN` |
| `en_AU` | English (Australia) | `fakerEN_AU` |
Expand All @@ -84,21 +84,21 @@ export const customFaker = new Faker({
| `en_GH` | English (Ghana) | `fakerEN_GH` |
| `en_IE` | English (Ireland) | `fakerEN_IE` |
| `en_IN` | English (India) | `fakerEN_IN` |
| `en_NG` | Nigeria (English) | `fakerEN_NG` |
| `en_NG` | English (Nigeria) | `fakerEN_NG` |
| `en_US` | English (United States) | `fakerEN_US` |
| `en_ZA` | English (South Africa) | `fakerEN_ZA` |
| `es` | Spanish | `fakerES` |
| `es_MX` | Spanish (Mexico) | `fakerES_MX` |
| `fa` | Farsi | `fakerFA` |
| `fi` | Finnish | `fakerFI` |
| `fr` | French | `fakerFR` |
| `fr_BE` | Français (Belgique) | `fakerFR_BE` |
| `fr_BE` | French (Belgium) | `fakerFR_BE` |
| `fr_CA` | French (Canada) | `fakerFR_CA` |
| `fr_CH` | French (Switzerland) | `fakerFR_CH` |
| `fr_LU` | French (Luxembourg) | `fakerFR_LU` |
| `ge` | Georgian | `fakerGE` |
| `he` | Hebrew | `fakerHE` |
| `hr` | Hrvatski | `fakerHR` |
| `hr` | Croatian | `fakerHR` |
| `hu` | Hungarian | `fakerHU` |
| `hy` | Armenian | `fakerHY` |
| `id_ID` | Indonesian | `fakerID_ID` |
Expand Down
2 changes: 1 addition & 1 deletion src/definitions/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface Definitions {
*/
export type LocaleDefinition = {
/**
* The name of the language.
* The English name of the language (and the specific country, if defined).
*/
title: string;
} & LocaleEntry<Definitions>;
2 changes: 1 addition & 1 deletion src/locales/dv/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import person from './person';
import phone_number from './phone_number';

const dv: LocaleDefinition = {
title: 'Dhivehi',
title: 'Maldivian',
cell_phone,
color,
company,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en_NG/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import person from './person';
import phone_number from './phone_number';

const en_NG: LocaleDefinition = {
title: 'Nigeria (English)',
title: 'English (Nigeria)',
company,
internet,
location,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/fr_BE/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import person from './person';
import phone_number from './phone_number';

const fr_BE: LocaleDefinition = {
title: 'Français (Belgique)',
title: 'French (Belgium)',
cell_phone,
internet,
location,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/hr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import person from './person';
import phone_number from './phone_number';

const hr: LocaleDefinition = {
title: 'Hrvatski',
title: 'Croatian',
cell_phone,
date,
internet,
Expand Down

0 comments on commit cf2ce68

Please sign in to comment.