Skip to content

Commit

Permalink
oop added to wrong warning
Browse files Browse the repository at this point in the history
  • Loading branch information
garikkh committed Sep 26, 2024
1 parent e28bbdf commit fa3ca4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/format-po-gettext/src/po-gettext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ const getPluralCases = (
if (!gettextPluralsInfo) {
// do not warn on pseudo
if (lang !== "pseudo") {
console.warn(`No plural rules found for language "${lang}".`)
console.warn(
`No plural rules found for language "${lang}". Please add a Plural-Forms header.`
)
}
return undefined
}
Expand Down Expand Up @@ -209,7 +211,7 @@ function parsePluralFormsFn(pluralFormsHeader: string): GettextPluralsInfo {
}
} catch (e) {
console.warn(
`Plural-Forms header has incorrect value: ${pluralFormsHeader}. Please add a Plural-Forms header.`
`Plural-Forms header has incorrect value: ${pluralFormsHeader}`
)
return undefined
}
Expand Down

0 comments on commit fa3ca4a

Please sign in to comment.