Skip to content

Commit d38e9c5

Browse files
authored
Get the proper locale after creating.
1 parent 60212a9 commit d38e9c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Traits/HasTranslation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ public function getAvailableLocales()
216216
*/
217217
public function getDefaultLocale()
218218
{
219+
if (request()->has('locale')) {
220+
return request()->get('locale');
221+
}
222+
219223
return config('app.fallback_locale');
220224
}
221225

0 commit comments

Comments
 (0)