Skip to content

Commit

Permalink
fix(locales): only translate default option group name
Browse files Browse the repository at this point in the history
  • Loading branch information
mleguen committed Feb 29, 2020
1 parent 18b0b75 commit acc16de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/usage.js
Expand Up @@ -146,7 +146,7 @@ module.exports = function usage (yargs, y18n) {
const deferY18nLookupPrefix = '__yargsString__:'
self.deferY18nLookup = str => deferY18nLookupPrefix + str

const defaultGroup = 'Options:'
const defaultGroup = __('Options:')
self.help = function help () {
if (cachedHelpMessage) return cachedHelpMessage
normalizeAliases()
Expand Down Expand Up @@ -264,7 +264,7 @@ module.exports = function usage (yargs, y18n) {

if (normalizedKeys.length < 1) return

ui.div(__(groupName))
ui.div(groupName)

// actually generate the switches string --foo, -f, --bar.
const switches = normalizedKeys.reduce((acc, key) => {
Expand Down

0 comments on commit acc16de

Please sign in to comment.