Skip to content

Commit 30e630d

Browse files
committed
Update README
1 parent 824be87 commit 30e630d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010

1111
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R3UQ8V)
1212

13-
Translate a URI or individual slugs.
14-
1513
This package registers a macro for the Laravel `Translator` class.
1614
This will allow you to translate individual URI slugs, while ignoring parameter placeholders.
15+
1716
Parameters will not be translated by this macro. That remains the responsibility of your code.
1817

1918
## ✅ Requirements
@@ -31,7 +30,8 @@ composer require codezero/laravel-uri-translator
3130

3231
Laravel will automatically register the ServiceProvider.
3332

34-
Then in your app's `lang` folder, create subdirectories for every locale you want to have translations for.
33+
In your app's `lang` folder, create subdirectories for every locale you want to have translations for.
34+
3535
Next create a `routes.php` file in each of those directories.
3636

3737
```
@@ -42,7 +42,7 @@ lang/
4242
└── routes.php
4343
```
4444

45-
Return an array of translations from the `routes.php` file.
45+
Return an array of translations from the `routes.php` files.
4646

4747
### 🚀 Usage
4848

@@ -61,7 +61,7 @@ The URI macro accepts 2 additional parameters:
6161
Lang::uri('hello/world', 'fr', 'my-package');
6262
```
6363

64-
You can also use `trans()->uri('hello/world')` instead of `Lang::uri()`.
64+
You can also use `trans()->uri('hello/world')` instead of `Lang::uri('hello/world')`.
6565

6666
### 🔌 Example
6767

0 commit comments

Comments
 (0)