fix: pluralization rule for the info word (#10599)

This commit is contained in:
Harminder Virk
2024-12-13 16:09:09 +05:30
committed by GitHub
parent 03803283d6
commit ae1d875fcf
6 changed files with 17 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ describe("pluralize", function () {
"hero",
"potato",
"address",
"info",
]
const expectedOutput = [
@@ -24,6 +25,7 @@ describe("pluralize", function () {
"heroes",
"potatoes",
"addresses",
"info",
]
words.forEach((word, index) => {

View File

@@ -1,4 +1,5 @@
import pluralizeEN from "pluralize"
pluralizeEN.addUncountableRule("info")
/**
* Function to pluralize English words.