15 lines
216 B
JavaScript
15 lines
216 B
JavaScript
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
|
|
}
|