basic implementation of i18n for text
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
aside.nav
|
aside.nav
|
||||||
.sidebar
|
.sidebar
|
||||||
template(v-for='category in categories')
|
template(v-for='category in categories')
|
||||||
|
//- nuxt-link(:to='$i18n.path(category.slug)') {{ category.title }}
|
||||||
nuxt-link(:to='category.slug') {{ category.title }}
|
nuxt-link(:to='category.slug') {{ category.title }}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
5
locales/de.json
Normal file
5
locales/de.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"general": {
|
||||||
|
"siteTitle": "Was ist 💎 webgems?"
|
||||||
|
}
|
||||||
|
}
|
||||||
5
locales/en.json
Normal file
5
locales/en.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"general": {
|
||||||
|
"siteTitle": "What is 💎 webgems?"
|
||||||
|
}
|
||||||
|
}
|
||||||
5
locales/fr.json
Normal file
5
locales/fr.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"general": {
|
||||||
|
"siteTitle": "What is 💎 webgems?"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.welcome
|
.welcome
|
||||||
main
|
main
|
||||||
h1.text-black.font-bold.text-xl.mb-2 What is
|
h1.text-black.font-bold.text-xl.mb-2 {{ $t('general.siteTitle') }}
|
||||||
span 💎 webgems?
|
|
||||||
p Webgems is a goto place for devs and designers to find new resources and more. As a beginner it's sometimes not easy to find what you need since you don't know what you should look for.
|
p Webgems is a goto place for devs and designers to find new resources and more. As a beginner it's sometimes not easy to find what you need since you don't know what you should look for.
|
||||||
p Therefore i created this project to have the most common and best resources for beginners and veterans in one place. Kinda like a bookmarks list for devs and designers, containing only the best gems out there.
|
p Therefore i created this project to have the most common and best resources for beginners and veterans in one place. Kinda like a bookmarks list for devs and designers, containing only the best gems out there.
|
||||||
p If you want to add your own gem, go ahead and open a pull request on github (click on that octocat at the top right corner).
|
p If you want to add your own gem, go ahead and open a pull request on github (click on that octocat at the top right corner).
|
||||||
|
|||||||
Reference in New Issue
Block a user