Skip to content

Commit

Permalink
Move on the asgardcms namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 16, 2017
1 parent f1fd144 commit faf356f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Assets/js/mixins/Translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default {
}
},
mounted() {
this.translations = window.translations;
this.translations = window.AsgardCMS.translations;
}
}
5 changes: 4 additions & 1 deletion Themes/Adminlte/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit faf356f

Please sign in to comment.