Skip to content

Commit

Permalink
Change locale support for Laravel 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
libern committed Feb 7, 2017
1 parent ba03996 commit 3501f4a
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 3501f4a

Please sign in to comment.