Skip to content

Commit

Permalink
doc country names command
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbs committed Mar 5, 2020
1 parent dd85b2d commit 667f963
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@ php artisan nova-lang:reorder de,ru
php artisan nova-lang:reorder --all
```

#### Country Names Command

This command is to assist contributors to download the country names automatically from the [Unicode Common Locale Data Repository](http://cldr.unicode.org/translation/displaynames/country-names) (CLDR). We use the CLDR as the definitive source for country names, as described in the contribution guidelines.

A new JSON file will be created at `storage_path('app/nova-lang/countries/{locale}.json')`. You can merge the keys from this file into `resources/lang/{locale}.json` in your fork before you raise a PR.

* Output country names for one or more languages:
```bash
php artisan nova-lang:country de,ru
```

* Output country names for all languages:
```bash
php artisan nova-lang:country --all
```

#### Stats Command

This command is to assist maintainers to update the completeness of each language and list of contributors in this README file.
Expand Down

0 comments on commit 667f963

Please sign in to comment.