Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tomatophp/filament-translations-g…
Browse files Browse the repository at this point in the history
…oogle
  • Loading branch information
3x1io committed Oct 28, 2024
2 parents 0beab59 + d3c28c9 commit f95d452
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/FilamentTranslationsGoogleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ public function register(): void
]);

//Register Config file
$this->mergeConfigFrom(__DIR__.'/../config/filament-translations-google.php', 'filament-translations-google');
$this->mergeConfigFrom(__DIR__ . '/../config/filament-translations-google.php', 'filament-translations-google');

//Publish Config
$this->publishes([
__DIR__.'/../config/filament-translations-google.php' => config_path('filament-translations-google.php'),
__DIR__ . '/../config/filament-translations-google.php' => config_path('filament-translations-google.php'),
], 'filament-translations-google-config');

//Register Langs
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'filament-translations-google');
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'filament-translations-google');

//Publish Lang
$this->publishes([
__DIR__.'/../resources/lang' => base_path('lang/vendor/filament-translations-google'),
__DIR__ . '/../resources/lang' => base_path('lang/vendor/filament-translations-google'),
], 'filament-translations-google-lang');

}
Expand Down
4 changes: 2 additions & 2 deletions tests/src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function defineDatabaseMigrations(): void
public function getEnvironmentSetUp($app): void
{
$app['config']->set('database.default', 'sqlite');
$app['config']->set('database.connections.sqlite.database', __DIR__.'/../database/database.sqlite');
$app['config']->set('database.connections.sqlite.database', __DIR__ . '/../database/database.sqlite');

$app['config']->set('filament-translations.use_queue_on_scan', false);

Expand All @@ -62,7 +62,7 @@ public function getEnvironmentSetUp($app): void

$app['config']->set('view.paths', [
...$app['config']->get('view.paths'),
__DIR__.'/../resources/views',
__DIR__ . '/../resources/views',
]);
}
}

0 comments on commit f95d452

Please sign in to comment.