feat: replace hard-coded content with i18n translation keys

This commit is contained in:
Sebin Nyshkim 2023-03-25 02:09:39 +01:00
parent 7fe9cdeef3
commit eefc4cc8d4
9 changed files with 80 additions and 272 deletions

View file

@ -4,14 +4,13 @@ import WelcomeHeader from "@/components/WelcomeHeader.vue";
<template>
<WelcomeHeader>
<template #main>Viktor Kraastav</template>
<template #sub>Character Reference Page</template>
<template #main>{{ $t("welcomeHeader.mainTitle") }}</template>
<template #sub>{{ $t("welcomeHeader.subTitle") }}</template>
</WelcomeHeader>
<section>
<h3>Welcome to Viktor's Ref Page</h3>
<h3>{{ $t("home.heading") }}</h3>
<p>Here you can learn all about the ankylosaurus named Viktor.</p>
<p>Pick an item from the navigation to dive in!</p>
<p v-for="p in $tm('home.paragraphs')">{{ p }}</p>
</section>
</template>