Skip to content

Commit

Permalink
PHP 8 support and update/fixes language paths (#21)
Browse files Browse the repository at this point in the history
* PHP 8 support and set language path with the Laravel helper function

* Bug fix, method resourcePath in LaravelTranslationFileHelper.php is pointing to the wrong directory
  • Loading branch information
mvd81 authored Apr 23, 2023
1 parent e2fa3c6 commit ad80a84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"minimum-stability": "dev",
"require": {
"elementaryframework/fire-fs": "1.0.0"
"elementaryframework/fire-fs": "1.2.2"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function watch()
$watcher = app('watcher');
$watcher->setListener(new Listener())
->setRecursive(true)
->setPath('./resources/lang')
->setPath(lang_path())
->setWatchInterval(250)
->build();
$watcher->start();
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelTranslationFileHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function write(array $data)
*/
public function resourcePath()
{
return resource_path('lang');
return lang_path();
}

/**
Expand Down

0 comments on commit ad80a84

Please sign in to comment.