You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+67-31Lines changed: 67 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,33 +13,9 @@ A performance-focused and lightweight faker library for TypeScript with comprehe
13
13
## Features
14
14
15
15
- ⚡️ **Performance-focused** - Built with speed and efficiency in mind
16
-
- 🌍 **Multi-locale Support** - Complete translations for 26 languages:
17
-
- Afrikaans _(af)_
18
-
- Arabic _(ar)_
19
-
- Azerbaijani _(az)_
20
-
- Czech _(cs)_
21
-
- Danish _(da)_
22
-
- German _(de)_
23
-
- English _(en)_
24
-
- Esperanto _(eo)_
25
-
- Spanish _(es)_
26
-
- Persian/Farsi _(fa)_
27
-
- Finnish _(fi)_
28
-
- French _(fr)_
29
-
- Hebrew _(he)_
30
-
- Hindi _(hi)_
31
-
- Italian _(it)_
32
-
- Japanese _(ja)_
33
-
- Korean _(ko)_
34
-
- Dutch _(nl)_
35
-
- Norwegian _(no)_
36
-
- Polish _(pl)_
37
-
- Portuguese _(pt)_
38
-
- Swedish _(sv)_
39
-
- Filipino _(tl)_
40
-
- Turkish _(tr)_
41
-
- Ukrainian _(uk)_
42
-
- Chinese _(zh)_
16
+
- 🌍 **Multi-locale Support** - Complete translations for 28 languages with 22+ regional variants:
17
+
- Afrikaans _(af)_, Arabic _(ar)_, Azerbaijani _(az)_, Czech _(cs)_, Danish _(da)_, German _(de)_, English _(en)_, Esperanto _(eo)_, Spanish _(es)_, Persian/Farsi _(fa)_, Finnish _(fi)_, French _(fr)_, Hebrew _(he)_, Hindi _(hi)_, Italian _(it)_, Japanese _(ja)_, Korean _(ko)_, Dutch _(nl)_, Norwegian _(no)_, Polish _(pl)_, Portuguese _(pt)_, Swedish _(sv)_, Filipino _(tl)_, Turkish _(tr)_, Ukrainian _(uk)_, Chinese Simplified _(zh-cn)_, Chinese Traditional _(zh-tw)_, Zulu _(zu)_
Many languages also have regional variants with localized data for specific countries:
134
+
135
+
**English Variants:**
136
+
137
+
-`en-us` - English (United States)
138
+
-`en-gb` - English (United Kingdom)
139
+
-`en-ca` - English (Canada)
140
+
-`en-ie` - English (Ireland)
141
+
-`en-in` - English (India)
142
+
-`en-za` - English (South Africa)
143
+
-`en-gh` - English (Ghana)
144
+
-`en-ng` - English (Nigeria)
145
+
-`en-hk` - English (Hong Kong)
146
+
147
+
**French Variants:**
148
+
149
+
-`fr-ca` - French (Canada)
150
+
-`fr-ch` - French (Switzerland)
151
+
-`fr-be` - French (Belgium)
152
+
-`fr-lu` - French (Luxembourg)
153
+
-`fr-sn` - French (Senegal)
154
+
155
+
**German Variants:**
156
+
157
+
-`de-at` - German (Austria)
158
+
-`de-ch` - German (Switzerland)
159
+
160
+
**Spanish Variants:**
161
+
162
+
-`es-mx` - Spanish (Mexico)
163
+
164
+
**Portuguese Variants:**
165
+
166
+
-`pt-mz` - Portuguese (Mozambique)
167
+
168
+
**Afrikaans Variants:**
169
+
170
+
-`af-za` - Afrikaans (South Africa)
171
+
172
+
**Zulu Variants:**
173
+
174
+
-`zu-za` - Zulu (South Africa)
175
+
176
+
These regional variants include country-specific data such as local cities, addresses, phone formats, and cultural references.
141
177
142
178
### API Examples
143
179
@@ -309,7 +345,7 @@ ts-mocker methods food
309
345
310
346
### Options
311
347
312
-
-`--locale <locale>` - Use a specific locale (af, ar, az, cs, da, de, en, eo, es, fa, fi, fr, he, hi, it, ja, ko, nl, no, pl, pt, sv, tl, tr, uk, zh)
348
+
-`--locale <locale>` - Use a specific locale (af, ar, az, cs, da, de, en, eo, es, fa, fi, fr, he, hi, it, ja, ko, nl, no, pl, pt, sv, tl, tr, uk, zh-cn, zh-tw, zu)
Copy file name to clipboardExpand all lines: docs/intro.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
# ts-mocker
8
8
9
-
ts-mocker is a modern, lightweight TypeScript library for generating fake data. Built with performance and developer experience in mind, it provides comprehensive locale support across 16 languages with complete translations for all data categories.
9
+
ts-mocker is a modern, lightweight TypeScript library for generating fake data. Built with performance and developer experience in mind, it provides comprehensive locale support across 28 languages with complete translations for all data categories.
10
10
11
11
## Why ts-mocker?
12
12
@@ -16,24 +16,36 @@ Built with performance as a top priority, ts-mocker is optimized for speed and e
16
16
17
17
### Comprehensive Locale Support
18
18
19
-
Unlike other faker libraries with limited or incomplete translations, ts-mocker provides **complete** translations across all 16 data categories for 16 different languages:
19
+
Unlike other faker libraries with limited or incomplete translations, ts-mocker provides **complete** translations across all 16 data categories for 28 different languages:
0 commit comments