Skip to content

Commit

Permalink
filter empty string in multiple locales
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-dr committed Feb 22, 2024
1 parent bde8379 commit d0667f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/lingui-extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ if (require.main === module) {
"--locale <locale, [...]>",
"Only extract the specified locales",
(value) => {
return value.split(",")
return value.split(",").filter(Boolean)

Check warning on line 118 in packages/cli/src/lingui-extract.ts

View check run for this annotation

Codecov / codecov/patch

packages/cli/src/lingui-extract.ts#L118

Added line #L118 was not covered by tests
}
)
.option("--overwrite", "Overwrite translations for source locale")
Expand Down

0 comments on commit d0667f7

Please sign in to comment.