Skip to content
Permalink
Browse files

Get default locale before setting a new locale

This should fix #11199
  • Loading branch information...
liviascapin committed Sep 15, 2017
1 parent 639a1c7 commit 6e54d273c74e71d8c6150e2f6710d4e9f537c94c
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/I18n/I18n.php
@@ -289,6 +289,7 @@ public static function locale($locale = null)
*/
public static function setLocale($locale)
{
static::getDefaultLocale();
Locale::setDefault($locale);
if (isset(static::$_collection)) {
static::translators()->setLocale($locale);

0 comments on commit 6e54d27

Please sign in to comment.
You can’t perform that action at this time.