Skip to content

Commit

Permalink
fix: set translation to default only in minimal format
Browse files Browse the repository at this point in the history
  • Loading branch information
tricoder42 committed Jun 30, 2018
1 parent 0c7231f commit 128b01b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/src/api/formats/minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function deserialize(catalog) {
}

function serialize(catalog) {
return R.map(message => message.translation || "", catalog)
return R.map(
message => message.translation || message.defaults || "",
catalog
)
}

export default (config: LinguiConfig): CatalogFormat => {
Expand Down

0 comments on commit 128b01b

Please sign in to comment.