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):
21
-
```bash
22
-
php artisan nova-lang:publish de,ru
23
-
```
21
+
```bash
22
+
php artisan nova-lang:publish de,ru
23
+
```
24
24
25
25
* Publish translations for all available languages:
26
-
```bash
27
-
php artisan nova-lang:publish --all
28
-
```
26
+
```bash
27
+
php artisan nova-lang:publish --all
28
+
```
29
29
30
30
* Publish translations and override existing files:
31
-
```bash
32
-
php artisan nova-lang:publish de,ru --force
33
-
```
31
+
```bash
32
+
php artisan nova-lang:publish de,ru --force
33
+
```
34
34
35
35
#### Aliases
36
36
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.
37
37
38
38
* Publish translations for one language with an alias, using the simple format `{alias}`:
39
-
```bash
40
-
php artisan nova-lang:publish de --alias=de-DE
41
-
```
39
+
```bash
40
+
php artisan nova-lang:publish de --alias=de-DE
41
+
```
42
42
This will publish the file `de-DE.json`.
43
43
44
-
45
44
* Publish translations for multiple languages with multiple aliases, using the format `{locale}:{alias}` (comma-separated):
* Here are some example aliases for common use cases:
59
58
60
-
*`zh-CN:zh-Hans,zh-TW:zh-Hant` (Use Chinese scripts instead of regions.)
61
-
*`pt:pt-PT,pt-BR:pt` (Brazilian Portuguese as default over European.)
62
-
*`sr-Latn:sr,sr:sr-Cyrl` (Serbian in Latin script as default over Cyrillic.)
59
+
*Use Chinese with scripts instead of regions: `zh-CN:zh-Hans,zh-TW:zh-Hant`
60
+
*Default to Brazilian Portuguese over European: `pt:pt-PT,pt-BR:pt`
61
+
*Default to Serbian in Latin script over Cyrillic: `sr-Latn:sr,sr:sr-Cyrl`
63
62
64
63
65
-
* There is also a`‑U` or`‑‑underscore` switch to publish locales with an underscore separator instead of a hyphen. This can be used in combination with aliases.
64
+
* 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.
0 commit comments