1 unstable release
0.2.1 | Feb 1, 2021 |
---|
#5 in #gender
28KB
996 lines
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?"
lib.rs
:
Plurr
A library for handling plurals/genders/conditionals.