LP1888723 Value summaries '1 copy' vs 'x copies'
authorBill Erickson <berickxx@gmail.com>
Mon, 11 Jan 2021 21:08:08 +0000 (16:08 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Sun, 15 Aug 2021 23:56:11 +0000 (19:56 -0400)
Add pluralization support to the copy summary counts so that values
linked to only a single copy display as "1 copy" instead of "1 copies"

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html

index bd87837..a4599eb 100644 (file)
@@ -52,7 +52,9 @@
             <ng-template #default>{{count.key}}</ng-template>
           </ng-container>
         </div>
-        <div class="pl-1 border-left" i18n>{{count.value}} copies</div>
+        <div class="pl-1 border-left" i18n>
+          {count.value, plural, =1 {1 copy} other {{{count.value}} copies}}
+        </div>
       </ng-container>
     </div>
   </div>