Update locale.md

This commit is contained in:
lucaszhu 2021-08-17 17:40:21 +08:00 committed by GitHub
parent 2c38d20841
commit 8b696f6010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ export default {
};
```
```js
// src/locales/zh-CN.js
// src/locales/en-US.js
export default {
menu: {
interface: 'interface'
@ -199,4 +199,4 @@ export default {
</script>
```
`useI18n()`返回结果是 [Composer](https://vue-i18n.intlify.dev/api/composition.html#composer),提供类似 `t``n``d` 等转换函数,在模板中使用。
`useI18n()`返回结果是 [Composer](https://vue-i18n.intlify.dev/api/composition.html#composer),提供类似 `t``n``d` 等转换函数,在模板中使用。