Skip to content

Commit

Permalink
Bugfixes + doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony BOTALLA committed Apr 15, 2022
1 parent e3e52db commit 5531b49
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ phpunit.xml
.DS_Store
Thumbs.db
.php_cs.cache
.php-cs-fixer.cache
1 change: 0 additions & 1 deletion .php-cs-fixer.cache

This file was deleted.

5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This package is an adaptation of [spatie/laravel-translation-loader](https://git
composer require novius/laravel-translation-loader:dev-master
```

In `config/app.php` (Laravel) or `bootstrap/app.php` (Lumen) you should replace Laravel's translation service provider
In `config/app.php` (Laravel) you should replace Laravel's translation service provider

```php
Illuminate\Translation\TranslationServiceProvider::class,
Expand Down Expand Up @@ -58,9 +58,6 @@ Optionally you could publish the config file using this command.
php artisan vendor:publish --provider="Novius\TranslationLoader\TranslationServiceProvider" --tag="config"
```


> **Note:** publishing assets doesn't work out of the box in Lumen. Instead you have to copy the files from the repo.
## Commands

```bash
Expand Down
2 changes: 1 addition & 1 deletion src/Console/SyncTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function handle()
$this->dbTranslationsKeys = $this->getDatabaseLanguageLineKeys();

$languageLines = collect();
foreach ($this->filesystem->allFiles(resource_path('lang')) as $file) {
foreach ($this->filesystem->allFiles(lang_path()) as $file) {
if (!in_array($file->getExtension(), $this->availableFileExtensions)) {
continue;
}
Expand Down

0 comments on commit 5531b49

Please sign in to comment.