i18n
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"playAgain": "Rejouer",
|
||||
"endGame.victoryLabel": "Bien joué !",
|
||||
"endGame.failureLabel": "Presque",
|
||||
"startGame": "Démarrer"
|
||||
}
|
||||
+10
@@ -1,12 +1,22 @@
|
||||
import './index.css'
|
||||
|
||||
import messages from '@intlify/vite-plugin-vue-i18n/messages'
|
||||
import { createApp } from 'vue'
|
||||
import { createI18n } from 'vue-i18n'
|
||||
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
|
||||
const i18n = createI18n({
|
||||
legacy: false,
|
||||
locale: 'fr',
|
||||
fallbackLocale: 'en',
|
||||
messages,
|
||||
})
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(router)
|
||||
app.use(i18n)
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user