let i18n = null let localePath = null export const useTranslation = () => { return { t: i18n.t.bind(i18n), localePath } } export default ({ app }) => { i18n = app.i18n localePath = app.localePath }