Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_plural/src/mod.ts

deno-plural module helps you to pluralize or singularize a given word.
Latest
import * as denoPlural from "https://deno.land/x/deno_plural@2.0.0/src/mod.ts";

Variables

A method to add new rules for the language specified as a first parameters

A method to get the current language

It returns the plural of the given word

A method to set the current language

It returns the singular of the giver word

Interfaces

In case is needed, is possible to extend the supported language with module augmentation: