File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 22
33namespace InteractionDesignFoundation \NovaUnlayerField ;
44
5- use Illuminate \Support \Facades \App ;
65use Illuminate \Support \ServiceProvider as BasicServiceProvider ;
76use Laravel \Nova \Nova ;
87
@@ -32,16 +31,14 @@ public function boot(): void
3231
3332 protected function registerTranslations (): void
3433 {
35- $ currentLocale = App::getLocale ();
36-
37- Nova::translations (__DIR__ ."/../resources/lang/ $ currentLocale.json " );
38- Nova::translations (resource_path ("lang/vendor/nova-unlayer-field/ $ currentLocale.json " ));
34+ Nova::translations (__DIR__ .'/../lang/en.json ' );
35+ Nova::translations ($ this ->app ->resourcePath ("lang/vendor/nova-unlayer-field/ {$ this ->app ->getLocale ()}.json " ));
3936 }
4037
4138 private function registerResources (): void
4239 {
4340 $ this ->publishes ([
44- __DIR__ .'/../config/unlayer.php ' => config_path ('unlayer.php ' ),
41+ __DIR__ .'/../config/unlayer.php ' => $ this -> app -> configPath ('unlayer.php ' ),
4542 ], 'config ' );
4643 }
4744}
You can’t perform that action at this time.
0 commit comments