Move on the asgardcms namespace

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