Files
dancefinder-app/plugins/i18n.js
T

15 lines
216 B
JavaScript
Raw Normal View History

let i18n = null
let localePath = null
export const useTranslation = () => {
return {
t: i18n.t.bind(i18n),
localePath
}
}
2020-01-25 14:59:14 +01:00
export default ({ app }) => {
i18n = app.i18n
localePath = app.localePath
}