Add internationalization

This commit is contained in:
2023-04-19 20:04:56 +02:00
parent 355496f070
commit 422896a87c
4 changed files with 902 additions and 9 deletions

20
i18n.config.ts Normal file
View File

@@ -0,0 +1,20 @@
export default defineI18nConfig(nuxt => ({
legacy: false,
locale: 'en',
messages: {
en: {
greeting: 'Hey. I\'m Manuel.',
iuQuizApp: 'An online quiz system that supports distance learning students at IU in solidifying their learning content in preparation for the exam. It enables students to cooperatively and collaboratively find answers to subject-related questions. The focus is particularly on working together and playing/learning together. Similar to the popular app Quizduel, students can, but do not have to, play against each other.',
pmb: 'A 2D game inspired by the 2000s Pokémon games. Built from scratch! Features animated battles (online multiplayer), overworld sprites, custom maps, sound, 3 difficulty levels and so much more.',
toriiSRSv1: 'A Japanese vocabulary learning tool that harnesses the power of spaced repetition to make memorizing new words a breeze.',
toriiSRSv2: 'A Japanese vocabulary learning tool that harnesses the power of spaced repetition to make memorizing new words a breeze.'
},
de: {
greeting: 'Hey. Ich bin Manuel.',
iuQuizApp: 'Ein Online-Quizsystem, das Studierende des Fernstudiums der IU bei der Festigung der Lerninhalte zur Vorbereitung auf die Klausur unterstützt. Es ermöglicht Studierenden, kooperativ und kollaborativ Antworten zu fachlichen Fragen zu finden. Das miteinander bzw. das gemeinsame Spielen/Erarbeiten steht dabei besonders im Fokus. Ähnlich wie bei der populären App Quizduell kann, jedoch muss nicht gegeneinander gespielt werden.',
pmb: 'A 2D game inspired by the 2000s Pokémon games. Built from scratch! Features animated battles (online multiplayer), overworld sprites, custom maps, sound, 3 difficulty levels and so much more.',
toriiSRSv1: 'A Japanese vocabulary learning tool that harnesses the power of spaced repetition to make memorizing new words a breeze.',
toriiSRSv2: 'A Japanese vocabulary learning tool that harnesses the power of spaced repetition to make memorizing new words a breeze.'
}
}
}))

View File

@@ -4,7 +4,10 @@ import vuetify from 'vite-plugin-vuetify'
export default defineNuxtConfig({
ssr: false,
css: ['vuetify/styles'],
css: [
'vuetify/styles',
'~/assets/variables.scss'
],
vite: {
ssr: {
@@ -16,12 +19,6 @@ export default defineNuxtConfig({
transpile: ['vuetify']
},
publicRuntimeConfig: {
axios: {
baseURL: '/',
},
},
app: {
head: {
// titleTemplate: '%s | Home',
@@ -44,6 +41,10 @@ export default defineNuxtConfig({
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
[
'@nuxtjs/i18n',
{ vueI18n: './i18n.config.ts' }
],
// https://go.nuxtjs.dev/axios
// ['@nuxtjs/axios', { proxyHeaders: false }],
// this adds the vuetify vite plugin

875
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,6 +11,7 @@
},
"devDependencies": {
"@mdi/font": "^7.0.96",
"@nuxtjs/i18n": "^8.0.0-beta.11",
"nuxt": "^3.4.0"
},
"dependencies": {