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
21
```bash
22
22
php artisan nova-lang:publish de,ru
23
23
```
24
24
25
-
Publish translations for all languages:
25
+
*Publish translations for all available languages:
26
26
```bash
27
27
php artisan nova-lang:publish --all
28
28
```
29
29
30
-
Publish translations and override existing files:
30
+
*Publish translations and override existing files:
31
31
```bash
32
32
php artisan nova-lang:publish de,ru --force
33
33
```
34
34
35
+
#### Aliases
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
+
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
+
```
42
+
This will publish the file `de-DE.json`.
43
+
44
+
45
+
* Publish translations for multiple languages with multiple aliases, using the format `{locale}:{alias}` (comma-separated):
|`‑‑srLatn`| Prefer Serbian in Latin script as default. | Serbian (Cyrillic)<br>Serbian (Latin) |`sr‑Cyrl`<br>`sr`|`sr`<br>`sr‑Latn`|
64
+
|`‑U` or `‑‑underscore`| Use underscore separator instead of hyphen. |_(any)_|_e.g._`zh_CN`|_e.g._`zh‑CN`|
65
+
66
+
These can all be used alone or in combination with each other and the `--alias` option.
67
+
35
68
### Development Commands (debug mode only)
36
69
37
70
You must have the `app.debug` config option set to true for these commands to be available:
@@ -42,12 +75,12 @@ This command is to assist contributors to find any untranslated keys for their c
42
75
43
76
A stub JSON file will be created at `storage_path('app/nova-lang/missing/{locale}.json')`. You can copy those keys into the `resources/lang/{locale}.json` language file in your own fork of the repository, translate them and create a pull request.
44
77
45
-
Output missing translation keys for one or more languages:
78
+
*Output missing translation keys for one or more languages:
46
79
```bash
47
80
php artisan nova-lang:missing de,ru
48
81
```
49
82
50
-
Output missing translation keys for all languages:
83
+
*Output missing translation keys for all languages:
51
84
```bash
52
85
php artisan nova-lang:missing --all
53
86
```
@@ -58,7 +91,7 @@ This command is to assist maintainers to update the completeness of each languag
58
91
59
92
A `README.excerpt.md` and `contributors.json` file will be created at `storage_path('app/nova-lang')`. You can copy those files into your own fork of the repository and create a pull request.
60
93
61
-
Output list of languages, lines translated and contributors:
94
+
*Output list of languages, lines translated and contributors:
0 commit comments