Add plural formatting for months in narrow form (#7744)
This commit is contained in:
@@ -180,7 +180,7 @@ export function formatDateDiff({
|
|||||||
? i18n._(plural(diff.value, {one: '# month', other: '# months'}))
|
? i18n._(plural(diff.value, {one: '# month', other: '# months'}))
|
||||||
: i18n._(
|
: i18n._(
|
||||||
defineMessage({
|
defineMessage({
|
||||||
message: `${diff.value}mo`,
|
message: plural(diff.value, {one: '#mo', other: '#mo'}),
|
||||||
comment: `How many months have passed, displayed in a narrow form`,
|
comment: `How many months have passed, displayed in a narrow form`,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user