From cb5d6f05d231cccd2cdc7e87816c191955e96f70 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Wed, 8 Mar 2023 21:58:02 +0900 Subject: [PATCH] docs(unplugin-vue-i18n): add notcie for yaml format resource --- packages/unplugin-vue-i18n/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/unplugin-vue-i18n/README.md b/packages/unplugin-vue-i18n/README.md index e493e3c..d60fbff 100644 --- a/packages/unplugin-vue-i18n/README.md +++ b/packages/unplugin-vue-i18n/README.md @@ -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 {