Treat falsy values as valid for i18n placeholders & fix groups in common message
This commit is contained in:
parent
476006af96
commit
fdaaa531b3
3 changed files with 21 additions and 6 deletions
|
@ -37,9 +37,15 @@ export function ConversationDetailsGroups({
|
|||
|
||||
return (
|
||||
<PanelSection
|
||||
title={i18n('ConversationDetailsGroups--title', {
|
||||
number: groupsInCommon.length,
|
||||
})}
|
||||
title={
|
||||
groupsInCommon.length > 0
|
||||
? i18n('icu:ConversationDetailsGroups--title', {
|
||||
count: groupsInCommon.length,
|
||||
})
|
||||
: i18n(
|
||||
'icu:ConversationDetailsGroups--title--with-zero-groups-in-common'
|
||||
)
|
||||
}
|
||||
>
|
||||
<PanelRow
|
||||
icon={<div className="ConversationDetails-groups__add-to-group-icon" />}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue