Add plural form support for multiselection page title (close #8026)

This commit is contained in:
Quincy Morgan
2020-09-27 18:42:27 -04:00
parent 74f473f5a5
commit 0b28648e6d
3 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -22,7 +22,9 @@ en:
context: "{base} {context}"
changes: "({changes}) {base}"
changes_context: "({changes}) {base} {context}"
labeled_and_more: "{labeled} and {count} more"
labeled_and_more:
one: "{labeled} and {count} more"
other: "{labeled} and {count} more"
modes:
add_area:
title: Area
+4 -1
View File
@@ -26,7 +26,10 @@
"changes": "({changes}) {base}",
"changes_context": "({changes}) {base} {context}"
},
"labeled_and_more": "{labeled} and {count} more"
"labeled_and_more": {
"one": "{labeled} and {count} more",
"other": "{labeled} and {count} more"
}
},
"modes": {
"add_area": {
+1 -1
View File
@@ -62,7 +62,7 @@ export function behaviorHash(context) {
if (selected.length > 1 ) {
contextual = t('title.labeled_and_more', {
labeled: firstLabel,
count: (selected.length - 1).toString()
count: selected.length - 1
});
} else {
contextual = firstLabel;