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
* Publish translations for multiple languages (comma-separated):
23
-
```bash
24
-
php artisan nova-lang:publish de,ru
25
-
```
26
-
27
-
* Publish translations for all available languages:
28
-
```bash
29
-
php artisan nova-lang:publish --all
30
-
```
31
-
32
-
* Publish translations and override existing files:
33
-
```bash
34
-
php artisan nova-lang:publish de,ru --force
35
-
```
17
+
#####Publish translations for one language:
18
+
```bash
19
+
php artisan nova-lang:publish de
20
+
```
21
+
22
+
#####Publish translations for multiple languages (comma-separated):
23
+
```bash
24
+
php artisan nova-lang:publish de,ru
25
+
```
26
+
27
+
#####Publish translations for all available languages:
28
+
```bash
29
+
php artisan nova-lang:publish --all
30
+
```
31
+
32
+
#####Publish translations and override existing files:
33
+
```bash
34
+
php artisan nova-lang:publish de,ru --force
35
+
```
36
36
37
37
#### Aliases
38
38
The language codes chosen for the files in this repository may not match the preferences for your project. You can use the `‑‑alias` option to publish locales using a different filename.
39
39
40
-
* Publish translations for one language with an alias, using the simple format `{alias}`:
41
-
```bash
42
-
php artisan nova-lang:publish de --alias=de-DE
43
-
```
44
-
This will publish the file `de-DE.json`.
40
+
##### Publish translations for one language with an alias, using the simple format `{alias}`:
41
+
```bash
42
+
php artisan nova-lang:publish de --alias=de-DE
43
+
```
44
+
45
+
This will publish the file `de-DE.json`.
46
+
47
+
##### Publish translations for multiple languages with multiple aliases, using the format `{locale}:{alias}` (comma-separated):
* Here are some example aliases for common use cases:
60
+
You do not need to supply an alias for every locale that is to be published, only those that you wish to override.
60
61
61
-
* Use Chinese with scripts instead of regions: `zh-CN:zh-Hans,zh-TW:zh-Hant`
62
-
* Default to Brazilian Portuguese over European: `pt:pt-PT,pt-BR:pt`
63
-
* Default to Serbian in Latin script over Cyrillic: `sr-Latn:sr,sr:sr-Cyrl`
62
+
Here are some example aliases for common use cases:
64
63
64
+
* Use Chinese with scripts instead of regions: `zh-CN:zh-Hans,zh-TW:zh-Hant`
65
+
* Default to Brazilian Portuguese over European: `pt:pt-PT,pt-BR:pt`
66
+
* Default to Serbian in Latin script over Cyrillic: `sr-Latn:sr,sr:sr-Cyrl`
65
67
66
-
* There is also an `‑‑underscore` or `‑U` switch to publish locales with an underscore separator instead of a hyphen. This can be used in combination with aliases.
68
+
69
+
There is also an `--underscore` or `-U` switch to publish locales with an underscore separator instead of a hyphen. This can be used in combination with aliases.
67
70
68
71
### Development Commands
69
72
70
-
Documentation of development commands for contributors is available at [Development Commands](development-commands.md).
73
+
Documentation of development commands for contributors and maintainers is available at [Development Commands](development-commands.md).
71
74
72
75
## Available Languages
73
76
74
-
Note: There is no need to update the count of translated strings and add your username below, as this is done by script when your PR is merged.
77
+
We welcome new languages and additions/improvements to existing languages! Please read our [contributing guidelines](CONTRIBUTING.md) and raise a PR.
78
+
79
+
**Note**: There is no need to update the count of translated strings and add your username below, as this is done by script when your PR is merged.
75
80
76
81
Total languages 
77
82
Total lines translated 
@@ -121,47 +126,4 @@ Total lines translated [`json`](resources/lang/sl.json)||[morpheus7CS](https://github.com/morpheus7CS)|
|`bg`| Bulgarian |[`php`](resources/lang/bg)[`json`](resources/lang/bg.json)||[BKirev](https://github.com/BKirev)|
The following languages are supported for the main Laravel framework by the excellent [laravel-lang/lang](https://github.com/laravel-lang/lang) package. We would love for our package to make these languages available for Nova as well. If you are able to contribute to any of these or other languages, please read our [contributing guidelines](CONTRIBUTING.md) and raise a PR.
129
-
130
-
Parity with `laravel-lang/lang`
0 commit comments