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

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

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

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

export {
    viewTo,
    apiTo,
    transl
}