diff --git a/resources/lang/en/ui.php b/resources/lang/en/ui.php index 0577efe..c3a2a80 100644 --- a/resources/lang/en/ui.php +++ b/resources/lang/en/ui.php @@ -1,5 +1,6 @@ 'Browse', - 'upload'=>'Upload', -); \ No newline at end of file + +return [ + 'browse' => 'Browse', + 'upload' => 'Upload', +]; diff --git a/resources/lang/zh-CN/ui.php b/resources/lang/zh-CN/ui.php index 7cb42c0..1211278 100644 --- a/resources/lang/zh-CN/ui.php +++ b/resources/lang/zh-CN/ui.php @@ -1,5 +1,6 @@ '选择文件', - 'upload'=>'上传', -); \ No newline at end of file + +return [ + 'browse' => '选择文件', + 'upload' => '上传', +]; diff --git a/src/PluploadServiceProvider.php b/src/PluploadServiceProvider.php index cd15403..261fe1c 100644 --- a/src/PluploadServiceProvider.php +++ b/src/PluploadServiceProvider.php @@ -47,13 +47,12 @@ protected function setupConfig() $this->mergeConfigFrom($configPath, 'plupload'); $this->loadViewsFrom($viewsPath, 'plupload'); - $this->publishes([$configPath => config_path('plupload.php')], 'config'); $this->publishes([ $viewsPath => base_path('resources/views/vendor/plupload'), $assetsPath.'/js' => base_path('resources/assets/plupload'), ]); - $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'plupload'); + $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'plupload'); } /**