Skip to content

Commit

Permalink
Moving asgardcms related variables to the AsgardCMS namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 16, 2017
1 parent fcb29ed commit 6d9d661
Show file tree
Hide file tree
Showing 5 changed files with 34,395 additions and 34,394 deletions.
2 changes: 1 addition & 1 deletion Modules/Page/Assets/js/PageRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PageTable from './components/PageTable.vue'
import PageTableServerSide from './components/PageTableServerSide.vue'
import PageForm from './components/PageForm.vue'

const locales = window.locales;
const locales = window.AsgardCMS.locales;

export default [
{
Expand Down
7 changes: 3 additions & 4 deletions Themes/Adminlte/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@
@endforeach
<script>
window.AsgardCMS = {
translations: {!! json_encode(['page' => array_dot(trans('page::pages')), 'core' => array_dot(trans('core::core'))]) !!}
translations: {!! json_encode(['page' => array_dot(trans('page::pages')), 'core' => array_dot(trans('core::core'))]) !!},
locales: {!! json_encode(LaravelLocalization::getSupportedLocales()) !!},
currentLocale: '{{ locale() }}',
};
window.locales = {!! json_encode(LaravelLocalization::getSupportedLocales()) !!}
window.currentLocale = '{{ locale() }}';
</script>

<script src="{{ mix('js/app.js') }}"></script>
Expand Down
Loading

0 comments on commit 6d9d661

Please sign in to comment.