Skip to content

Commit

Permalink
Load translations from JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Aug 27, 2024
1 parent 523c93e commit 4aaaeaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FilamentBuienradarWidgetServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function configurePackage(Package $package): void

if (file_exists($package->basePath('/../resources/lang'))) {
$package->hasTranslations();
$this->loadJsonTranslationsFrom($package->basePath('/../resources/lang'));
}

if (file_exists($package->basePath('/../resources/views'))) {
Expand Down Expand Up @@ -150,4 +151,4 @@ protected function getMigrations(): array
'create_filament-buienradar-widget_table',
];
}
}
}

0 comments on commit 4aaaeaf

Please sign in to comment.