10000 Issue https://github.com/laravel/lumen-framework/issues/1250 (#1251) · laravel/lumen-framework@75d0bda · GitHub
[go: up one dir, main page]

Skip to content

Commit 75d0bda

Browse files
authored
Issue #1250 (#1251)
Adding getFallbackLocale in Application class. To fix the problem with illuminate/translation updates.
1 parent 1c2fa30 commit 75d0bda

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Application.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,16 @@ public function getLocale()
989989
return $this['config']->get('app.locale');
990990
}
991991

992+
/**
993+
* Get the current application fallback locale.
994+
*
995+
* @return string
996+
*/
997+
public function getFallbackLocale()
998+
{
999+
return $this['config']->get('app.fallback_locale');
1000+
}
1001+
9921002
/**
9931003
* Set the current application locale.
9941004
*

0 commit comments

Comments
 (0)
0