From c86849aadfc277a6cf2c5bc05f52824624782f08 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Fri, 4 Mar 2022 16:39:33 +0100 Subject: [PATCH] Update Manager.php (#417) --- src/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Manager.php b/src/Manager.php index 7e478f5e..26cc0dab 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -393,7 +393,7 @@ public function getLocales() public function addLocale($locale) { - $localeDir = $this->app->langPath().'/'.$locale; + $localeDir = $this->app->langPath().'/'.basename($locale); $this->ignoreLocales = array_diff($this->ignoreLocales, [$locale]); $this->saveIgnoredLocales();