plurr 0.2.1

A library for handling plurals/genders/conditionals.
Documentation

Plurr

A library for handling plurals/genders/conditionals.

Installation

Add the plurr crate to your Cargo.toml file:

[dependencies]
plurr = "0.2.1"

Usage

extern crate plurr;

use plurr::Plurr;

let mut p = Plurr::new();
let s = "Delete {N_PLURAL:{N} file|{N} files}?";
p.param("N", "5").format(s); // "Delete 5 files?"