plurr

Crates.ioplurr
lib.rsplurr
version0.2.1
sourcesrc
created_at2021-02-01 07:32:22.576818
updated_at2021-02-01 07:32:22.576818
descriptionA library for handling plurals/genders/conditionals.
homepage
repositoryhttps://github.com/loctools/plurr/
max_upload_size
id349168
size33,173
(julen)

documentation

README

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?"
Commit count: 146

cargo fmt