require vue-i18n

parent 680044be
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
}, },
"dependencies": { "dependencies": {
"element-ui": "^1.4.4", "element-ui": "^1.4.4",
"vue-data-tables": "^2.0.4" "vue-data-tables": "^2.0.4",
"vue-i18n": "^7.2.0"
} }
} }
...@@ -13996,6 +13996,14 @@ if (userApiToken) { ...@@ -13996,6 +13996,14 @@ if (userApiToken) {
console.error('User API token not found in a meta tag.'); console.error('User API token not found in a meta tag.');
} }
var currentLocale = document.head.querySelector('meta[name="current-locale"]');
if (currentLocale) {
window.currentLocale = currentLocale.content;
} else {
console.error('Current locale token not found in a meta tag.');
}
/** /**
* Echo exposes an expressive API for subscribing to channels and listening * Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting * for events that are broadcast by Laravel. Echo and event broadcasting
...@@ -69216,7 +69224,7 @@ var _data = void 0; ...@@ -69216,7 +69224,7 @@ var _data = void 0;
data: _data, data: _data,
actionsDef: { actionsDef: {
def: [{ def: [{
name: 'Create a page', name: pageTranslations.button.createPage,
icon: 'edit', icon: 'edit',
handler: function handler() { handler: function handler() {
window.location = route('admin.page.page.create'); window.location = route('admin.page.page.create');
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