Skip to content

Commit 42bfa99

Browse files
committed
Merge branch 'dev'
2 parents 1720f73 + 5c123db commit 42bfa99

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

src/components/AuthorInfo/AuthorInfo.vue

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
<script lang="ts" setup>
2-
import { useI18n } from 'vue-i18n'
32
import AvatarBox from '@/components/AvatarBox/AvatarBox.vue'
43
54
const props = defineProps({
65
name: {
76
type: String,
87
required: false,
98
default: () => {
10-
const { t } = useI18n()
11-
12-
return t('views.home.author.name')
9+
return 'views.home.author.name'
1310
}
1411
},
1512
role: {
1613
type: String,
1714
required: false,
1815
default: () => {
19-
const { t } = useI18n()
20-
21-
return t('views.home.author.role')
16+
return 'views.home.author.role'
2217
}
2318
}
2419
})
@@ -28,10 +23,10 @@ const props = defineProps({
2823
<div class="author__info">
2924
<div class="author__info__text">
3025
<h1>
31-
{{ props.name }}
26+
{{ $t(`${props.name}`) }}
3227
</h1>
3328
<p>
34-
{{ props.role }}
29+
{{ $t(`${props.role}`) }}
3530
</p>
3631
</div>
3732
<AvatarBox />

src/components/TechStack/TechStack.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script lang="ts" setup>
2-
import { useI18n } from 'vue-i18n'
32
import { useDark } from '@vueuse/core'
43
import { mdiTools } from '@mdi/js'
54
@@ -35,9 +34,7 @@ const props = defineProps({
3534
title: {
3635
type: String,
3736
default: () => {
38-
const { t } = useI18n()
39-
40-
return t('components.techStack.title')
37+
return 'components.techStack.title'
4138
}
4239
}
4340
})
@@ -54,7 +51,7 @@ const isDark = useDark()
5451
:path="mdiTools"
5552
/>
5653
<h2>
57-
{{ props.title }}
54+
{{ $t(`${props.title}`) }}
5855
</h2>
5956
</div>
6057
<Marquee

0 commit comments

Comments
 (0)