feat: locales in header & footer
This commit is contained in:
parent
94880e20a2
commit
354148357f
4 changed files with 44 additions and 11 deletions
12
app/composables/useLocales.ts
Normal file
12
app/composables/useLocales.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { ref } from 'vue'
|
||||
import enMessages from '../locales/message-en.json'
|
||||
|
||||
const messages = ref(enMessages)
|
||||
|
||||
export const useLocale = () => {
|
||||
// todo add changer
|
||||
|
||||
return {
|
||||
t: messages
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue