Skip to content

Commit

Permalink
Loader Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
safdar-tp committed Sep 15, 2017
1 parent c89d102 commit 542d0c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
| 'database' Use the database as the exclusive source for language entries.
| 'files' Use files as the exclusive source for language entries [Laravel's default].
*/
'source' => env('TRANSLATION_SOURCE', 'mixed'),
'source' => env('TRANSLATION_SOURCE', 'database'),

// In case the files source is selected, please enter here the supported locales for your app.
// Ex: ['en', 'es', 'fr']
Expand Down
2 changes: 1 addition & 1 deletion src/Loaders/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function load($locale, $group, $namespace = null)
{
if ($locale != $this->defaultLocale) {
return array_replace_recursive(
$this->loadSource($this->defaultLocale, $group, $namespace),
//$this->loadSource($this->defaultLocale, $group, $namespace),
$this->loadSource($locale, $group, $namespace)
);
}
Expand Down

0 comments on commit 542d0c2

Please sign in to comment.