Skip to content

Commit

Permalink
fix: wrong detect whether a translation is plural (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
truong-hua authored Aug 30, 2021
1 parent 60e3952 commit 48b6644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/api/formats/po-gettext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const convertPluralsToICU = (items: POItemType[], lang?: string) => {
const messageKey = getMessageKey(item)

// Messages without multiple translations (= plural cases) need no further processing.
if (translationCount <= 1) {
if (translationCount <= 1 && !item.msgid_plural) {
return
}

Expand Down

1 comment on commit 48b6644

@vercel
Copy link

@vercel vercel bot commented on 48b6644 Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.