plurr 0.2.1

A library for handling plurals/genders/conditionals.
Documentation
  • Coverage
  • 37.5%
    6 out of 16 items documented1 out of 8 items with examples
  • Size
  • Source code size: 32.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.06 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • loctools/plurr
    81 11 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • julen

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?"