Socket
Socket
Sign inDemoInstall

yargs

Package Overview
Dependencies
Maintainers
4
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yargs - npm Package Compare versions

Comparing version 3.17.1 to 3.18.0

locales/es.json

12

CHANGELOG.md
## Change Log
### v3.18.0 (2015/08/06 20:05 +00:00)
- [#222](https://github.com/bcoe/yargs/pull/222) updates fr locale (@nexdrew)
- [#221](https://github.com/bcoe/yargs/pull/221) adds missing locale strings (@nexdrew)
- [#220](https://github.com/bcoe/yargs/pull/220) adds es locale (@zkat)
### v3.17.1 (2015/08/02 19:35 +00:00)
- [#218](https://github.com/bcoe/yargs/pull/218) upgrades nyc (@bcoe)
### v3.17.0 (2015/08/02 18:39 +00:00)
- [#217](https://github.com/bcoe/yargs/pull/217) sort methods in README.md (@nexdrew)
- [#215](https://github.com/bcoe/yargs/pull/215) adds fr locale (@LoicMahieu)
### v3.16.0 (2015/07/30 04:35 +00:00)

@@ -4,0 +16,0 @@ - [#210](https://github.com/bcoe/yargs/pull/210) adds i18n support to yargs (@bcoe)

6

index.js

@@ -121,3 +121,3 @@ var assert = require('assert')

self.config = function (key, msg) {
self.describe(key, msg || 'Path to JSON config file')
self.describe(key, msg || usage.deferY18nLookup('Path to JSON config file'))
options.config.push.apply(options.config, [].concat(key))

@@ -340,3 +340,3 @@ return self

self.boolean(versionOpt)
self.describe(versionOpt, msg || 'Show version number')
self.describe(versionOpt, msg || usage.deferY18nLookup('Show version number'))
return self

@@ -349,3 +349,3 @@ }

self.boolean(opt)
self.describe(opt, msg || 'Show help')
self.describe(opt, msg || usage.deferY18nLookup('Show help'))
return self

@@ -352,0 +352,0 @@ }

@@ -238,3 +238,3 @@ // fancy-pants parsing of argv, originally forked

if (args.length - (i + 1) < toEat) error = Error(__('not enough arguments following: %s', key))
if (args.length - (i + 1) < toEat) error = Error(__('Not enough arguments following: %s', key))

@@ -338,3 +338,3 @@ for (var ii = i + 1; ii < (toEat + i + 1); ii++) {

} catch (ex) {
if (argv[configKey]) error = Error(__('invalid json config file: %s', configPath))
if (argv[configKey]) error = Error(__('Invalid JSON config file: %s', configPath))
}

@@ -341,0 +341,0 @@ }

@@ -94,2 +94,7 @@ // this file handles outputting usage instructions,

var deferY18nLookupPrefix = '__yargsString__:'
self.deferY18nLookup = function (str) {
return deferY18nLookupPrefix + str
}
self.help = function () {

@@ -163,2 +168,4 @@ normalizeAliases()

if (~desc.lastIndexOf(deferY18nLookupPrefix)) desc = __(desc.substring(deferY18nLookupPrefix.length))
if (~options.boolean.indexOf(key)) type = '[' + __('boolean') + ']'

@@ -165,0 +172,0 @@ if (~options.count.indexOf(key)) type = '[' + __('count') + ']'

@@ -31,4 +31,7 @@ {

"Implications failed:": "Implications failed:",
"not enough arguments following: %s": "not enough arguments following: %s",
"invalid json config file: %s": "invalid json config file: %s"
"Not enough arguments following: %s": "Not enough arguments following: %s",
"Invalid JSON config file: %s": "Invalid JSON config file: %s",
"Path to JSON config file": "Path to JSON config file",
"Show help": "Show help",
"Show version number": "Show version number"
}

@@ -31,4 +31,7 @@ {

"Implications failed:": "Implications échouées:",
"not enough arguments following: %s": "pas assez d'arguments suivant: %s",
"invalid json config file: %s": "fichier de configuration json invalide: %s"
"Not enough arguments following: %s": "Pas assez d'arguments suivant: %s",
"Invalid JSON config file: %s": "Fichier de configuration JSON invalide: %s",
"Path to JSON config file": "Chemin du fichier de configuration JSON",
"Show help": "Affiche de l'aide",
"Show version number": "Affiche le numéro de version"
}

@@ -9,3 +9,5 @@ {

"other": "Ye be havin' to set the followin' arguments land lubber: %s"
}
},
"Show help": "Parlay this here code of conduct",
"Show version number": "'Tis the version ye be askin' fer"
}
{
"name": "yargs",
"version": "3.17.1",
"version": "3.18.0",
"description": "Light-weight option parsing with an argv hash. No optstrings attached.",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -679,3 +679,3 @@ yargs

--option, -o 'tis a mighty fine option [requi-yar-ed]
--help Show help [boolean]
--help Parlay this here code of conduct [boolean]

@@ -691,2 +691,3 @@ Ex. marks the spot:

* **en:** American English.
* **es:** Spanish.
* **fr:** French.

@@ -938,2 +939,5 @@ * **pirate:** American Pirate.

If you explicitly specify a `locale()`, you should do so *before* calling
`updateStrings()`.
.usage(message, [opts])

@@ -940,0 +944,0 @@ ---------------------

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc