Skip to content

Commit 4d6d2d7

Browse files
committed
Fix locale loading
1 parent d934f5c commit 4d6d2d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Translator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Translator extends LaravelTranslator
1414
protected $languages = [];
1515
protected $strings = [];
1616
protected $languagesLoaded = false;
17-
protected $stringsLoaded = false;
17+
protected $stringsLoaded = [];
1818

1919
/**
2020
* Create a new translator instance.
@@ -156,11 +156,11 @@ public function loadLanguages()
156156

157157
public function loadStrings($locale, $platform = null, $check = null)
158158
{
159-
if ($this->stringsLoaded || !$this->enabled()) {
159+
if (isset($this->stringsLoaded[$locale]) || !$this->enabled()) {
160160
return;
161161
}
162162

163-
$this->stringsLoaded = true;
163+
$this->stringsLoaded[$locale] = true;
164164

165165
// Load languages from API
166166
$this->loadLanguages();

0 commit comments

Comments
 (0)