File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
- import { useI18n } from ' vue-i18n'
3
2
import AvatarBox from ' @/components/AvatarBox/AvatarBox.vue'
4
3
5
4
const props = defineProps ({
6
5
name: {
7
6
type: String ,
8
7
required: false ,
9
8
default : () => {
10
- const { t } = useI18n ()
11
-
12
- return t (' views.home.author.name' )
9
+ return ' views.home.author.name'
13
10
}
14
11
},
15
12
role: {
16
13
type: String ,
17
14
required: false ,
18
15
default : () => {
19
- const { t } = useI18n ()
20
-
21
- return t (' views.home.author.role' )
16
+ return ' views.home.author.role'
22
17
}
23
18
}
24
19
})
@@ -28,10 +23,10 @@ const props = defineProps({
28
23
<div class =" author__info" >
29
24
<div class =" author__info__text" >
30
25
<h1 >
31
- {{ props.name }}
26
+ {{ $t(`${ props.name}`) }}
32
27
</h1 >
33
28
<p >
34
- {{ props.role }}
29
+ {{ $t(`${ props.role}`) }}
35
30
</p >
36
31
</div >
37
32
<AvatarBox />
Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
- import { useI18n } from ' vue-i18n'
3
2
import { useDark } from ' @vueuse/core'
4
3
import { mdiTools } from ' @mdi/js'
5
4
@@ -35,9 +34,7 @@ const props = defineProps({
35
34
title: {
36
35
type: String ,
37
36
default : () => {
38
- const { t } = useI18n ()
39
-
40
- return t (' components.techStack.title' )
37
+ return ' components.techStack.title'
41
38
}
42
39
}
43
40
})
@@ -54,7 +51,7 @@ const isDark = useDark()
54
51
:path =" mdiTools"
55
52
/>
56
53
<h2 >
57
- {{ props.title }}
54
+ {{ $t(`${ props.title}`) }}
58
55
</h2 >
59
56
</div >
60
57
<Marquee
You can’t perform that action at this time.
0 commit comments