Skip to content

Commit c83d7aa

Browse files
committed
updates
1 parent a2c9591 commit c83d7aa

File tree

3 files changed

+461
-390
lines changed

3 files changed

+461
-390
lines changed

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"name": "vite-vue-i18n-starter",
33
"version": "0.0.0",
44
"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"
77
},
88
"devDependencies": {
9-
"@intlify/vite-plugin-vue-i18n": "3.2.1",
9+
"@intlify/vite-plugin-vue-i18n": "3.3.0",
1010
"@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",
1313
"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"
1616
},
1717
"private": true,
1818
"scripts": {

src/components/HelloI18n.vue

+7-14
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,16 @@
1919
</p>
2020
</template>
2121

22-
<script lang="ts">
23-
import { ref, defineComponent } from 'vue'
22+
<script setup lang="ts">
23+
import { ref } from 'vue'
2424
import { useI18n } from 'vue-i18n'
2525
26-
export default defineComponent({
27-
name: 'HelloI18n',
28-
setup() {
29-
const count = ref(0)
26+
const count = ref(0)
3027
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
3932
})
4033
</script>
4134

0 commit comments

Comments
 (0)