Skip to content

Commit 24b4f38

Browse files
committed
update docs
1 parent b6c3686 commit 24b4f38

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- i18n resource definition
2121
- i18n resource importing
2222
- Locale of i18n resource definition
23+
- Locale of i18n resource definition for global scope
2324
- i18n resource formatting
2425
- i18n resource optimaization
2526

@@ -55,11 +56,17 @@ import { useI18n } from 'vue-i18n'
5556
export default {
5657
name: 'app',
5758
setup() {
59+
const { t, locale } = useI18n({
60+
// ...
61+
})
62+
5863
// Somthing todo ...
64+
5965
return {
60-
...,
61-
...useI18n({
62-
// ...
66+
// ...
67+
t,
68+
locale,
69+
// ...
6370
})
6471
}
6572
}

0 commit comments

Comments
 (0)