Move on the asgardcms namespace

parent f1fd144a
......@@ -10,6 +10,6 @@ export default {
}
},
mounted() {
this.translations = window.translations;
this.translations = window.AsgardCMS.translations;
}
}
......@@ -74,7 +74,10 @@
<script src="{{ URL::asset($js) }}" type="text/javascript"></script>
@endforeach
<script>
window.translations = {!! json_encode(['page' => trans('page::pages'), 'core' => trans('core::core')]) !!};
window.AsgardCMS = {
translations: {!! json_encode(['page' => trans('page::pages'), 'core' => trans('core::core')]) !!}
};
window.locales = {!! json_encode(LaravelLocalization::getSupportedLocales()) !!}
window.currentLocale = '{{ locale() }}';
</script>
......
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