Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

not specified 'locales' argument. #170

Open
nyszilard opened this issue Jan 16, 2021 · 2 comments
Open

not specified 'locales' argument. #170

nyszilard opened this issue Jan 16, 2021 · 2 comments

Comments

@nyszilard
Copy link

nyszilard commented Jan 16, 2021

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)

@gustawdaniel
Copy link

I have the same issue.

In my case it works:

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

@simon-rohart
Copy link

Solved with this (single quotes):

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants