From 4e1b4f5afdb149e6d437c9ff5b6140c428886c86 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Wed, 2 Sep 2020 18:53:17 +0100 Subject: [PATCH] Add URLs which should not be localized --- config/laravellocalization.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/laravellocalization.php b/config/laravellocalization.php index 37dff89..c8ed670 100644 --- a/config/laravellocalization.php +++ b/config/laravellocalization.php @@ -55,6 +55,14 @@ return [ // URLs which should not be processed, e.g. '/nova', '/nova/*', '/nova-api/*' or specific application URLs // Defaults to [] - 'urlsIgnored' => ['/skipped'], + 'urlsIgnored' => [ + '/js/*', + '/img/*', + '/css/*', + '/vendor/*', + '/app.css', + '/robots.txt', + '/slides/*' + ], ];