Skip to content

Commit 1e92bfd

Browse files
authored
Update README.md
1 parent 39d0024 commit 1e92bfd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,30 @@ The `syncLangFiles()` function is a Laravel helper provided by this package. Use
5252
5353
---
5454

55+
### 🧠 How to Use
56+
57+
```php
58+
// Load and sync a single translation file
59+
syncLangFiles('auth');
60+
61+
// Load and sync multiple translation files
62+
syncLangFiles(['auth', 'validation', 'pagination']);
63+
```
64+
65+
---
66+
67+
### ✅ Supported Inputs
68+
69+
The `syncLangFiles()` function supports:
70+
71+
* A **string**: For a single translation file
72+
`syncLangFiles('auth')`
73+
74+
* An **array of strings**: For multiple translation files
75+
`syncLangFiles(['auth', 'validation'])`
76+
77+
---
78+
5579
### 🧪 How It Works
5680

5781
Suppose you have the following language file:

0 commit comments

Comments
 (0)