File tree 3 files changed +461
-390
lines changed
3 files changed +461
-390
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " vite-vue-i18n-starter" ,
3
3
"version" : " 0.0.0" ,
4
4
"dependencies" : {
5
- "vue" : " ^3.2.22 " ,
6
- "vue-i18n" : " ^9.2.0-beta.20 "
5
+ "vue" : " ^3.2.29 " ,
6
+ "vue-i18n" : " ^9.2.0-beta.30 "
7
7
},
8
8
"devDependencies" : {
9
- "@intlify/vite-plugin-vue-i18n" : " 3.2.1 " ,
9
+ "@intlify/vite-plugin-vue-i18n" : " 3.3.0 " ,
10
10
"@types/node" : " ^16.11.9" ,
11
- "@vitejs/plugin-vue" : " ^1.9.4 " ,
12
- "@vue/compiler-sfc" : " ^3.2.22 " ,
11
+ "@vitejs/plugin-vue" : " ^2.2.2 " ,
12
+ "@vue/compiler-sfc" : " ^3.2.29 " ,
13
13
"typescript" : " ^4.5.2" ,
14
- "vite" : " ^2.6.14 " ,
15
- "vue-tsc" : " ^0.29.5 "
14
+ "vite" : " ^2.8.4 " ,
15
+ "vue-tsc" : " ^0.31.4 "
16
16
},
17
17
"private" : true ,
18
18
"scripts" : {
Original file line number Diff line number Diff line change 19
19
</p >
20
20
</template >
21
21
22
- <script lang="ts">
23
- import { ref , defineComponent } from ' vue'
22
+ <script setup lang="ts">
23
+ import { ref } from ' vue'
24
24
import { useI18n } from ' vue-i18n'
25
25
26
- export default defineComponent ({
27
- name: ' HelloI18n' ,
28
- setup() {
29
- const count = ref (0 )
26
+ const count = ref (0 )
30
27
31
- // use local scope
32
- const { t } = useI18n ({
33
- // `locale` inherit from global scope
34
- inheritLocale: true
35
- })
36
-
37
- return { count , t }
38
- }
28
+ // use local scope
29
+ const { t } = useI18n ({
30
+ // `locale` inherit from global scope
31
+ inheritLocale: true
39
32
})
40
33
</script >
41
34
You can’t perform that action at this time.
0 commit comments