Skip to content

Commit

Permalink
docs(unplugin-vue-i18n): add notcie for yaml format resource (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon authored Mar 8, 2023
1 parent 5552fd8 commit db0aacd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/unplugin-vue-i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,14 @@ This plugin will automatically select and bundle `petite-vue-i18n` build accordi
- ts
```

Note `json` resources matches this option, it will be handled **before the internal json plugin of bundler, and will not be processed afterwards**, else the option doesn't match, the bundler side will handle.
> ⚠️ NOTE:
`json` resources matches this option, it will be handled **before the internal json plugin of bundler, and will not be processed afterwards**, else the option doesn't match, the bundler side will handle.

Note that `js` and `ts` resources are limited to **simple export (`export default`) as locale messages object only**, such as programmatically dynamic resource construction is not guaranteed to work currently.
> ⚠️ NOTE:
`yaml` resources don't support multi documentation with `|`, alias with `&` and `*`, tags with `! `, `@`, etc. Only simple data structures.

> ⚠️ NOTE:
`js` and `ts` resources are limited to **simple export (`export default`) as locale messages object only**, such as programmatically dynamic resource construction is not guaranteed to work currently.

```js
export default {
Expand Down

0 comments on commit db0aacd

Please sign in to comment.