Skip to content

Commit d86e14c

Browse files
committed
fix: Add locales
1 parent 2f4f1dd commit d86e14c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ Use the activation keyword `rd` followed by the data type you want to generate:
226226
| `rd creditcard` | `rd creditcard` | Generate a random credit card number (test use only) |
227227
| `rd credit` | `rd credit` | Alias for creditcard command |
228228

229+
230+
### Supported Locales
231+
Bogus supports many locales. Use `rd locale <code>` to change the language for generated data. Supported locale codes include:
232+
`af_ZA`, `ar`, `az`, `cz`, `de`, `de_AT`, `de_CH`, `el`, `en`, `en_AU`, `en_AU_ocker`, `en_BORK`, `en_CA`, `en_GB`, `en_IE`, `en_IND`, `en_NG`, `en_US`, `en_ZA`, `es`, `es_MX`, `fa`, `fi`, `fr`, `fr_CA`, `fr_CH`, `ge`, `hr`, `id_ID`, `it`, `ja`, `ko`, `lv`, `nb_NO`, `ne`, `nl`, `nl_BE`, `pl`, `pt_BR`, `pt_PT`, `ro`, `ru`, `sk`, `sv`, `tr`, `uk`, `vi`, `zh_CN`, `zh_TW`, `zu_ZA`.
233+
234+
| `rd locale [code]` | `rd locale fr` | Change data generation locale |
235+
229236
### Examples
230237

231238
```bash
@@ -243,6 +250,10 @@ rd number 1-1000
243250

244251
# Generate 25 words of lorem ipsum text
245252
rd lorem 25
253+
254+
255+
# Change locale to French
256+
rd locale fr (or other `af_ZA`, `ar`, `az`, `cz`, `de`, `de_AT`, `de_CH`, `el`, `en`, `en_AU`, `en_AU_ocker`, `en_BORK`, `en_CA`, `en_GB`, `en_IE`, `en_IND`, `en_NG`, `en_US`, `en_ZA`, `es`, `es_MX`, `fa`, `fi`, `fr`, `fr_CA`, `fr_CH`, `ge`, `hr`, `id_ID`, `it`, `ja`, `ko`, `lv`, `nb_NO`, `ne`, `nl`, `nl_BE`, `pl`, `pt_BR`, `pt_PT`, `ro`, `ru`, `sk`, `sv`, `tr`, `uk`, `vi`, `zh_CN`, `zh_TW`, `zu_ZA` )
246257
```
247258

248259
## ☕ Support

assets/locale.png

10.1 KB
Loading

0 commit comments

Comments
 (0)