vue-cli-plugin-i18n icon indicating copy to clipboard operation
vue-cli-plugin-i18n copied to clipboard

not specified 'locales' argument.

Open nyszilard opened this issue 4 years ago • 2 comments

System

  • "vue-i18n": "^8.17.3",
  • @vue/cli 4.5.10
  • OS Windows 10

Default value by vue cli

"i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'"

In vue ui, when I run i18n:report task, I have this output:

$ vue-cli-service i18n:report --src ./src/**/*.{js,vue}" --locales "./src/locales/**/*.json
not specified 'locales' argument.

In package.json I have this for i18n:report entry: "i18n:report": "vue-cli-service i18n:report --src \"./src/**/*.{js,vue}\" --locales \"./src/locales/**/*.json\"" I changed the value based on this #81 because I experienced the same problem.

So the #81 problem has gone, but here’s that problem now. (Works perfectly from terminal btw)

nyszilard avatar Jan 16 '21 19:01 nyszilard

I have the same issue.

In my case it works:

npx vue-cli-service i18n:report --src "./src/**/*.?(js|vue)" --locales "./src/locales/**/*.json"

gustawdaniel avatar Jan 24 '21 11:01 gustawdaniel

Solved with this (single quotes):

"vue-cli-service i18n:report --src './src/**/*.{js,vue}' --locales './src/locales/**/*.json'"

simon-rohart avatar Oct 15 '21 14:10 simon-rohart