Skip to content

Commit 667f963

Browse files
committed
doc country names command
1 parent dd85b2d commit 667f963

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,22 @@ php artisan nova-lang:reorder de,ru
103103
php artisan nova-lang:reorder --all
104104
```
105105

106+
#### Country Names Command
107+
108+
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.
109+
110+
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.
111+
112+
* Output country names for one or more languages:
113+
```bash
114+
php artisan nova-lang:country de,ru
115+
```
116+
117+
* Output country names for all languages:
118+
```bash
119+
php artisan nova-lang:country --all
120+
```
121+
106122
#### Stats Command
107123

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

0 commit comments

Comments
 (0)