aboutsummaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-09-11 21:41:19 +0800
committerGitHub <[email protected]>2022-09-11 09:41:19 -0400
commit907558bd64230bde070a37870667c368ecd56881 (patch)
treeb206fd5cd5b413d29c14f8061a730ca380a23734 /docs/api
parent8db9d6e8743d080431093b643b0a238d73c422e8 (diff)
downloadfaker-907558bd64230bde070a37870667c368ecd56881.tar.xz
faker-907558bd64230bde070a37870667c368ecd56881.zip
docs: localization (#1364)
Co-authored-by: ST-DDT <[email protected]> Co-authored-by: Leyla Jähnig [email protected] Co-authored-by: Eric Cheng <[email protected]>
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/.gitignore1
-rw-r--r--docs/api/localization.md93
2 files changed, 0 insertions, 94 deletions
diff --git a/docs/api/.gitignore b/docs/api/.gitignore
index fc720b3c..47b11a83 100644
--- a/docs/api/.gitignore
+++ b/docs/api/.gitignore
@@ -1,7 +1,6 @@
# Markdown
*.md
!index.md
-!localization.md
# TypeScript
*.ts
diff --git a/docs/api/localization.md b/docs/api/localization.md
deleted file mode 100644
index 50e09665..00000000
--- a/docs/api/localization.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# Localization
-
-As of version `v2.0.0` Faker has support for multiple localities.
-
-The default language locale is set to English.
-
-Setting a new locale is simple:
-
-```js
-// sets locale to de
-faker.setLocale('de');
-// or
-faker.locale = 'de';
-```
-
-<!-- LOCALES-AUTO-GENERATED-START -->
-
-<!-- Run 'pnpm run generate:locales' to update. -->
-
-| Locale | Name |
-| :---------- | :------------------------ |
-| af_ZA | Afrikaans |
-| ar | Arabic |
-| az | Azerbaijani |
-| cz | Czech |
-| de | German |
-| de_AT | German (Austria) |
-| de_CH | German (Switzerland) |
-| el | Greek |
-| en | English |
-| en_AU | English (Australia) |
-| en_AU_ocker | English (Australia Ocker) |
-| en_BORK | English (Bork) |
-| en_CA | English (Canada) |
-| en_GB | English (Great Britain) |
-| en_GH | English (Ghana) |
-| en_IE | English (Ireland) |
-| en_IND | English (India) |
-| en_NG | Nigeria (English) |
-| en_US | English (United States) |
-| en_ZA | English (South Africa) |
-| es | Spanish |
-| es_MX | Spanish (Mexico) |
-| fa | Farsi |
-| fi | Finnish |
-| fr | French |
-| fr_BE | Français (Belgique) |
-| fr_CA | French (Canada) |
-| fr_CH | French (Switzerland) |
-| ge | Georgian |
-| he | Hebrew |
-| hr | Hrvatski |
-| hu | Hungarian |
-| hy | Armenian |
-| id_ID | Indonesia |
-| it | Italian |
-| ja | Japanese |
-| ko | Korean |
-| lv | Latvian |
-| mk | Macedonian |
-| nb_NO | Norwegian |
-| ne | Nepalese |
-| nl | Dutch |
-| nl_BE | Dutch (Belgium) |
-| pl | Polish |
-| pt_BR | Portuguese (Brazil) |
-| pt_PT | Portuguese (Portugal) |
-| ro | Romanian |
-| ru | Russian |
-| sk | Slovakian |
-| sv | Swedish |
-| tr | Turkish |
-| uk | Ukrainian |
-| ur | Urdu |
-| vi | Vietnamese |
-| zh_CN | Chinese |
-| zh_TW | Chinese (Taiwan) |
-| zu_ZA | Zulu (South Africa) |
-
-<!-- LOCALES-AUTO-GENERATED-END -->
-
-## Individual Localization Packages
-
-As of version `v3.0.0` Faker supports incremental loading of locales.
-
-By default, requiring `faker` will include _all_ locale data.
-
-In a production environment, you may only want to include the locale data for a specific set of locales.
-
-```js
-// loads only de locale
-const { faker } = require('@faker-js/faker/locale/de');
-```