Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 28, 2021
1 parent 95dd4dc commit d8c35f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function load($locale, $group, $namespace = null)
{
$defaults = [];

$locale = str_replace('-', '_', $locale);
$locale = str_replace('_', '-', $locale);

foreach ($this->paths as $path) {
$defaults = array_replace_recursive($defaults, $this->loadPath($path, $locale, $group));
Expand Down

0 comments on commit d8c35f9

Please sign in to comment.