Skip to content

Commit 280345e

Browse files
committed
fix strict mode
2 parents 159ab6d + 7b38513 commit 280345e

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

config/translation-manager.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@
8686
*
8787
* @return bool
8888
*/
89-
'permissions' => function () {
90-
if(env('APP_ENV') == 'local')
91-
return true;
92-
93-
return false;
94-
},
89+
'permissions' => env('APP_ENV') == 'local',
9590

9691
);

readme.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Configuration
8080
| highlight_locale_marked | Highlight lines with locale marked as not translated. | false |
8181
| live_translation_enabled | Enable live translation of content. | false |
8282
| popup_placement | Position of live translation popup. | top |
83-
| permissions | Define whow and when can edit translations. | function () {return env('APP_ENV') == 'local'; } |
83+
| permissions | Define whow and when can edit translations. | env('APP_ENV') == 'local' |
8484

8585

8686
Commands
@@ -308,17 +308,25 @@ Do not use this inside of non-clickable elements (title attribute, alt attribute
308308
Changelog
309309
---------
310310

311-
0.5.0
311+
0.6.0
312312
* No STRICT_MODE needed anymore
313313

314+
0.5.1
315+
* Fix searching translations
316+
317+
0.5.0
318+
* Change the views path
319+
320+
0.4.7
321+
* remove closures in config file
322+
314323
0.4.5
315324
* Laravel 5.6 support
316325

317326
0.4.4
318327
* Fix translation title popup
319328

320329
0.4.3
321-
322330
* New configurations (popup placement and basic language)
323331
* Update documentation about necessary JS scripts
324332

src/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function postImport(Request $request)
108108

109109
public function postFind()
110110
{
111-
$this->service->findTranslations();
111+
$this->service->find();
112112

113113
return [
114114
'success' => true,

src/ManagerServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected function loadViews()
9898
$viewPath = __DIR__.'/../resources/views';
9999
$this->loadViewsFrom($viewPath, 'translation-manager');
100100
$this->publishes([
101-
$viewPath => resource_path('assets/views/vendor/translation-manager'),
101+
$viewPath => resource_path('views/vendor/translation-manager'),
102102
], 'views');
103103
}
104104

0 commit comments

Comments
 (0)