bundle-tools icon indicating copy to clipboard operation
bundle-tools copied to clipboard

Fail to parse yaml file

Open fyeeme opened this issue 2 years ago • 0 comments

Reporting a bug?

file to parse yaml messages that values contains space. image image

image

Expected behavior

yaml format should be correct parse that values has space:

  desc: Opinionated Vite Starter Template

Reproduction

demo create a i18n message yaml format. then add following content:

button:
  about: About
  back: Back
  go: GO
  home: Home
  toggle_dark: Toggle dark mode
  toggle_langs: Change languages
intro:
  desc: Opinionated Vite Starter Template
  dynamic-route: Demo of dynamic route
  hi: Hi, {name}!
  aka: Also known as
  whats-your-name: What's your name?
not-found: Not found

npm run dev to start vite project, and error will occured.

Uploading image.png…

Issue Package

vite-plugin-vue-i18n

System Info

system: macos 12.1
node: v16.15.1
pnpm: 7.1.6
chrome: Version 102.0.5005.115 (Official Build) (arm64)
package.json:

{
  "name": "web-client",
  "private": true,
  "version": "0.0.0",
  "scripts": {
    "dev": "vite",
    "build": "vue-tsc --noEmit && vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "@shimi-edu/api": "workspace:*",
    "pinia": "^2.0.14",
    "vue": "^3.2.37",
    "vue-i18n": "9",
    "vue-router": "^4.0.16"
  },
  "devDependencies": {
    "@intlify/vite-plugin-vue-i18n": "^3.4.0",
    "@vitejs/plugin-vue": "^2.3.3",
    "prettier": "^2.6.2",
    "typescript": "^4.7.3",
    "vite": "^2.9.12",
    "vue-tsc": "^0.34.17"
  }
}

Screenshot

image

Additional context

Validations

  • [X] Read the Contributing Guidelines.
  • [X] Read the README
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.

fyeeme avatar Jun 13 '22 06:06 fyeeme