aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-03-07 17:36:26 +0100
committerGitHub <[email protected]>2023-03-07 17:36:26 +0100
commitcf2ce6830d42a1a91c1a2defcc02d86c1a782cf8 (patch)
tree6ea1e6937ab2c751f04bc5bc4cabfb6a7983fa19
parent4f720ef9d29b6f30c463b2574ce9c8995fbd4ebd (diff)
downloadfaker-cf2ce6830d42a1a91c1a2defcc02d86c1a782cf8.tar.xz
faker-cf2ce6830d42a1a91c1a2defcc02d86c1a782cf8.zip
fix: consistent locale names (#1884)
-rw-r--r--docs/guide/localization.md8
-rw-r--r--src/definitions/definitions.ts2
-rw-r--r--src/locales/dv/index.ts2
-rw-r--r--src/locales/en_NG/index.ts2
-rw-r--r--src/locales/fr_BE/index.ts2
-rw-r--r--src/locales/hr/index.ts2
6 files changed, 9 insertions, 9 deletions
diff --git a/docs/guide/localization.md b/docs/guide/localization.md
index b3003aad..167fc5e4 100644
--- a/docs/guide/localization.md
+++ b/docs/guide/localization.md
@@ -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` |
@@ -84,7 +84,7 @@ 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` |
@@ -92,13 +92,13 @@ export const customFaker = new Faker({
| `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` |
diff --git a/src/definitions/definitions.ts b/src/definitions/definitions.ts
index 65753ba7..afec8b28 100644
--- a/src/definitions/definitions.ts
+++ b/src/definitions/definitions.ts
@@ -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>;
diff --git a/src/locales/dv/index.ts b/src/locales/dv/index.ts
index 9ba28b8a..67314227 100644
--- a/src/locales/dv/index.ts
+++ b/src/locales/dv/index.ts
@@ -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,
diff --git a/src/locales/en_NG/index.ts b/src/locales/en_NG/index.ts
index 91c1c64f..249b287b 100644
--- a/src/locales/en_NG/index.ts
+++ b/src/locales/en_NG/index.ts
@@ -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,
diff --git a/src/locales/fr_BE/index.ts b/src/locales/fr_BE/index.ts
index cfbcf64b..927ba711 100644
--- a/src/locales/fr_BE/index.ts
+++ b/src/locales/fr_BE/index.ts
@@ -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,
diff --git a/src/locales/hr/index.ts b/src/locales/hr/index.ts
index 1ef899b5..1bcbaa1c 100644
--- a/src/locales/hr/index.ts
+++ b/src/locales/hr/index.ts
@@ -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,