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

// Ruta API
const apiTo = (name, params = {}) => route(`vacation-requests.admin.${name}`, params)

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

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

export {
    viewTo,
    apiTo,
    transl
}