Skip to content

Commit 9f2efbb

Browse files
committed
readme indents
1 parent b0de79a commit 9f2efbb

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

README.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,38 @@ composer require coderello/laravel-nova-lang
1313
## Usage
1414
### Publish Command
1515
* Publish translations for one language:
16-
```bash
17-
php artisan nova-lang:publish de
18-
```
16+
```bash
17+
php artisan nova-lang:publish de
18+
```
1919

2020
* 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+
```
2424

2525
* 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+
```
2929

3030
* 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+
```
3434

3535
#### Aliases
3636
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.
3737

3838
* 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+
```
4242
This will publish the file `de-DE.json`.
4343

44-
4544
* Publish translations for multiple languages with multiple aliases, using the format `{locale}:{alias}` (comma-separated):
46-
```bash
47-
php artisan nova-lang:publish de,ru,fr --alias=de:de-DE,ru:ru-RU
48-
```
45+
```bash
46+
php artisan nova-lang:publish de,ru,fr --alias=de:de-DE,ru:ru-RU
47+
```
4948
This will publish the files `de-DE.json`, `ru-RU.json` and `fr.json` (no alias).
5049

5150
* Aliases can also be used with the `--all` flag:
@@ -57,12 +56,12 @@ php artisan nova-lang:publish de,ru,fr --alias=de:de-DE,ru:ru-RU
5756

5857
* Here are some example aliases for common use cases:
5958

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`
6362

6463

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.
6665

6766
### Development Commands (debug mode only)
6867

0 commit comments

Comments
 (0)