Skip to content

Commit

Permalink
Merge pull request #5 from someline/1.4
Browse files Browse the repository at this point in the history
Change locale support for Laravel 5.4
  • Loading branch information
libern authored Feb 7, 2017
2 parents ba03996 + 3501f4a commit 2592433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Someline/Support/Controllers/LocaleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LocaleController extends Controller
*/
public function getLocaleJs(Request $request, $locale)
{
$content = 'window.Someline.locales = ' . json_encode(trans('app', [], 'messages', $locale));
$content = 'window.Someline.locales = ' . json_encode(trans('app', [], $locale));
$response = response()->make($content);
$response->header('Content-Type', 'application/javascript');
$response->setPublic()
Expand Down

0 comments on commit 2592433

Please sign in to comment.