Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Czech locale #2243

Closed
dreamscached opened this issue Oct 5, 2022 · 3 comments
Closed

Issue with Czech locale #2243

dreamscached opened this issue Oct 5, 2022 · 3 comments

Comments

@dreamscached
Copy link

dreamscached commented Oct 5, 2022

Hi! I'm using yargs in my personal project and I seem to have issues with it when I run ./index.js --help:

SyntaxError: syntax error in /home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/yargs/locales/cs.json
    at JSON.parse (<anonymous>)
    at Y18N._readLocaleFile (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/y18n/build/index.cjs:141:37)
    at Y18N.__ (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/y18n/build/index.cjs:30:18)
    at Object.P.n.help (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/yargs/build/index.cjs:1:16520)
    at Object.P.n.showHelp (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/yargs/build/index.cjs:1:20126)
    at Xt.showHelp (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/yargs/build/index.cjs:1:42577)
    at Xt.[runYargsParserAndExecuteCommands] (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/yargs/build/index.cjs:1:58654)
    at Xt.parse (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/yargs/build/index.cjs:1:40011)
    at Xt.parseSync (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/node_modules/yargs/build/index.cjs:1:40511)
    at Object.<anonymous> (/home/dreamscached/Dokumenty/Vývoj/Projekty/dreamscached/rexport/index.js:9:6)

Edit: seemingly there is a PR that addresses that: #2242

@panther7
Copy link

panther7 commented Oct 11, 2022

Maybe add JSON validation for locales to tests.

@davidslaby
Copy link

The same issue

@bcoe bcoe closed this as completed Nov 2, 2022
@bcoe
Copy link
Member

bcoe commented Nov 2, 2022

Apologies for the bad release, and taking so long to land.

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

No branches or pull requests

4 participants