We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6c3686 commit 24b4f38Copy full SHA for 24b4f38
README.md
@@ -20,6 +20,7 @@
20
- i18n resource definition
21
- i18n resource importing
22
- Locale of i18n resource definition
23
+ - Locale of i18n resource definition for global scope
24
- i18n resource formatting
25
- i18n resource optimaization
26
@@ -55,11 +56,17 @@ import { useI18n } from 'vue-i18n'
55
56
export default {
57
name: 'app',
58
setup() {
59
+ const { t, locale } = useI18n({
60
+ // ...
61
+ })
62
+
63
// Somthing todo ...
64
65
return {
- ...,
- ...useI18n({
- // ...
66
67
+ t,
68
+ locale,
69
70
})
71
}
72
0 commit comments