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

@@ -48,6 +48,7 @@
"@graphql-tools/merge": "^9.0.7",
"@graphql-tools/schema": "^10.0.6",
"@medusajs/types": "^2.1.1",
"@types/pluralize": "^0.0.33",
"bignumber.js": "^9.1.2",
"dotenv": "^16.4.5",
"dotenv-expand": "^11.0.6",

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.