Adding a translations stack and adding current local to meta tag

parent 171f5135
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<meta id="token" name="token" value="{{ csrf_token() }}" /> <meta id="token" name="token" value="{{ csrf_token() }}" />
<meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="user-api-token" content="{{ $currentUser->getFirstApiKey() }}"> <meta name="user-api-token" content="{{ $currentUser->getFirstApiKey() }}">
<meta name="current-locale" content="{{ locale() }}">
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
@foreach($cssFiles as $css) @foreach($cssFiles as $css)
<link media="all" type="text/css" rel="stylesheet" href="{{ URL::asset($css) }}"> <link media="all" type="text/css" rel="stylesheet" href="{{ URL::asset($css) }}">
...@@ -20,6 +21,7 @@ ...@@ -20,6 +21,7 @@
@section('styles') @section('styles')
@show @show
@stack('css-stack') @stack('css-stack')
@stack('translation-stack')
<script> <script>
$.ajaxSetup({ $.ajaxSetup({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment