File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Translator extends LaravelTranslator
14
14
protected $ languages = [];
15
15
protected $ strings = [];
16
16
protected $ languagesLoaded = false ;
17
- protected $ stringsLoaded = false ;
17
+ protected $ stringsLoaded = [] ;
18
18
19
19
/**
20
20
* Create a new translator instance.
@@ -156,11 +156,11 @@ public function loadLanguages()
156
156
157
157
public function loadStrings ($ locale , $ platform = null , $ check = null )
158
158
{
159
- if ($ this ->stringsLoaded || !$ this ->enabled ()) {
159
+ if (isset ( $ this ->stringsLoaded [ $ locale ]) || !$ this ->enabled ()) {
160
160
return ;
161
161
}
162
162
163
- $ this ->stringsLoaded = true ;
163
+ $ this ->stringsLoaded [ $ locale ] = true ;
164
164
165
165
// Load languages from API
166
166
$ this ->loadLanguages ();
You can’t perform that action at this time.
0 commit comments