Skip to content

Commit

Permalink
fix: set default value for all strings to support plurals (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed May 11, 2021
1 parent 5647e24 commit 3846fc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/lib/i18n/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ const extract = async ({ input, output, paths }) => {
process.exit(1)
}

/* eslint-disable max-params */
var parser = new scanner.Parser({
keepRemoved: false,
keySeparator: false,
sort: true,
defaultValue: (lng, ns, key, options) =>
options.defaultValue ? options.defaultValue : key,
})
/* eslint-enable max-params */

reporter.debug(`[i18n-extract] Parsing ${files.length} files...`)

Expand Down

0 comments on commit 3846fc0

Please sign in to comment.