Skip to content

Commit

Permalink
Add language to getData (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuarez20 authored and enzolutions committed Jul 3, 2019
1 parent bffc461 commit 6a196d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,9 @@ public function getData($filterNamespaces = null, $excludeNamespaces = [], $excl
];
}

//Add default Language
$language = $this->container->get('console.translator_manager')->getLanguage();
$data['default_language'] = $language;

// Exclude application if it is inside the $excludeNamespaces array.
if (!in_array('application', $excludeNamespaces)) {
Expand Down

0 comments on commit 6a196d6

Please sign in to comment.