From 60b6c88c1f720d42486032332afc69011c22c93a Mon Sep 17 00:00:00 2001 From: Crazynds Date: Wed, 19 Mar 2025 18:16:44 -0300 Subject: [PATCH] fix: locales like 'pt_BR' 'fr_BE' will work when send to the frontend --- src/FileManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileManager.php b/src/FileManager.php index aa879cd..e62343e 100644 --- a/src/FileManager.php +++ b/src/FileManager.php @@ -72,7 +72,7 @@ public function initialize(): array } // get language - $config['lang'] = app()->getLocale(); + $config['lang'] = str_replace('_','-',app()->getLocale()); return [ 'result' => [