import { lang } from '@Lang/i18n';

// Ruta API
const apiTo = (name, params = {}) => route(`dashboard.${name}`, params)

// Ruta visual
const viewTo = ({ name = '', params = {}, query = {} }) => view({ name: `dashboard.${name}`, params, query })

// Obtener traducción del componente
const transl = (str) => lang(`dashboard.${str}`)

export {
    viewTo,
    apiTo,
    transl
}