mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
update i18n example
This commit is contained in:
parent
e01093b2ac
commit
2c33be31d5
@ -1,21 +1,13 @@
|
||||
<template>
|
||||
<div class="Content">
|
||||
<div class="container">
|
||||
<h1 class="Content__Title">{{ $t('about.title') }}</h1>
|
||||
<p>{{ $t('about.introduction') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<about/>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.Content
|
||||
{
|
||||
padding: 50px 0;
|
||||
text-align: center;
|
||||
<script>
|
||||
import About from '~/partials/About.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
About
|
||||
}
|
||||
}
|
||||
.Content__Title
|
||||
{
|
||||
font-weight: 300;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</script>
|
||||
|
@ -1,21 +1,13 @@
|
||||
<template>
|
||||
<div class="Content">
|
||||
<div class="container">
|
||||
<h1 class="Content__Title">{{ $t('home.title') }}</h1>
|
||||
<p>{{ $t('home.introduction') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<home/>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.Content
|
||||
{
|
||||
padding: 50px 0;
|
||||
text-align: center;
|
||||
<script>
|
||||
import Home from '~/partials/Home.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Home
|
||||
}
|
||||
}
|
||||
.Content__Title
|
||||
{
|
||||
font-weight: 300;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</script>
|
||||
|
13
examples/i18n/pages/about.vue
Normal file
13
examples/i18n/pages/about.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<about/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import About from '~/partials/About.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
About
|
||||
}
|
||||
}
|
||||
</script>
|
13
examples/i18n/pages/index.vue
Normal file
13
examples/i18n/pages/index.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<home/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Home from '~/partials/Home.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Home
|
||||
}
|
||||
}
|
||||
</script>
|
21
examples/i18n/partials/About.vue
Normal file
21
examples/i18n/partials/About.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div class="Content">
|
||||
<div class="container">
|
||||
<h1 class="Content__Title">{{ $t('about.title') }}</h1>
|
||||
<p>{{ $t('about.introduction') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.Content
|
||||
{
|
||||
padding: 50px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.Content__Title
|
||||
{
|
||||
font-weight: 300;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
</style>
|
21
examples/i18n/partials/Home.vue
Normal file
21
examples/i18n/partials/Home.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div class="Content">
|
||||
<div class="container">
|
||||
<h1 class="Content__Title">{{ $t('home.title') }}</h1>
|
||||
<p>{{ $t('home.introduction') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.Content
|
||||
{
|
||||
padding: 50px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.Content__Title
|
||||
{
|
||||
font-weight: 300;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user