Skip to content

Commit 413fc9b

Browse files
authored
Merge pull request #8 from eramitgupta/config-update
chore: update
2 parents 4257006 + 595f86a commit 413fc9b

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ You can customize the language directory by modifying `config/inertia-lang.php`:
257257

258258
```php
259259
return [
260-
'lang_path' => resource_path('lang'), // Default: /resources/lang
260+
'lang_path' => base_path('lang'), // Default: /lang
261261
];
262262
```
263263

config/inertia-lang.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@
33
return [
44

55
/*
6-
|--------------------------------------------------------------------------
7-
| Language Files Base Path
8-
|--------------------------------------------------------------------------
9-
|
10-
| This path defines the base directory where your language files are stored.
11-
| By default, it uses Laravel's built-in lang_path() helper, which typically
12-
| points to the "resources/lang" directory.
13-
|
14-
| You can override this to point to a custom location if needed.
15-
|
16-
*/
6+
|--------------------------------------------------------------------------
7+
| Language Files Base Path
8+
|--------------------------------------------------------------------------
9+
|
10+
| Specifies the base directory where language files are stored.
11+
| By default, it points to the "lang" folder in the project root
12+
| using Laravel's base_path() helper.
13+
|
14+
*/
1715

18-
'lang_path' => resource_path('lang'),
16+
'lang_path' => base_path('lang'),
1917

2018
];

0 commit comments

Comments
 (0)