Skip to content

Commit dddf9b9

Browse files
author
Andrey Helldar
committed
Small fix
1 parent 947c743 commit dddf9b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Support/Trans.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ protected function getLocale(): string
4141
{
4242
$locale = $this->isForce() ? $this->getForceLocale() : $this->appLocale();
4343

44-
$exploded = explode(',', $locale);
44+
$current = explode(',', $locale);
45+
$app = explode(',', $this->appLocale());
4546

4647
return $this->getCorrectedLocale(
47-
reset($exploded),
48-
$this->appLocale()
48+
reset($current),
49+
reset($app)
4950
);
5051
}
5152

0 commit comments

Comments
 (0)