const strftime = require('strftime'); module.exports = { name: 'sample-report', created() { if (this.locale) this.$i18n.locale = this.locale; }, data() { return { client: { id: 10252, name: 'Batman', }, sales: [ {id: 1, concept: 'My item 1', quantity: 25}, {id: 2, concept: 'My item 2', quantity: 50}, {id: 3, concept: 'My item 3', quantity: 150} ], locale: 'es' }; }, methods: { dated: () => { return strftime('%d-%m-%Y', new Date()); }, }, components: { 'report-header': require('../report-header'), 'report-footer': require('../report-footer'), }, };