Skip to content

Commit

Permalink
Adjust Replace And Config File
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunate authored and rmunate committed Nov 7, 2023
1 parent edbd6df commit 48cf732
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Langs/Langs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Rmunate\Utilities\Langs;

use Illuminate\Support\Facades\App;

use Rmunate\Utilities\Traits\Locale;
use Rmunate\Utilities\Miscellaneous\Utilities;

Expand Down
6 changes: 5 additions & 1 deletion src/Traits/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace Rmunate\Utilities\Traits;

use Rmunate\Utilities\Langs\Langs;
use Illuminate\Support\Facades\App;
use Rmunate\Utilities\Miscellaneous\Utilities;

trait Locale
{
/**
Expand All @@ -12,7 +16,7 @@ public static function getLocaleLaravel()
{
$isoLang = Utilities::extractPrimaryLocale(App::getLocale());

$availables = array_keys(self::LOCALES_AVAILABLE);
$availables = array_keys(Langs::LOCALES_AVAILABLE);

// Return especific timezone
if (in_array($isoLang, $availables)) {
Expand Down

0 comments on commit 48cf732

Please sign in to comment.