/iso639

iso639 rust enum and utils

Primary LanguageRustOtherNOASSERTION

iso639

Build Status codecov License:MIT

Example

Cargo.toml

[dependencies]
iso639-1 = "0.3.0"

src/main.rs (gist)

extern crate iso639_1;
use iso639_1::{Iso639_1, from_iso639_1, to_iso639_3};

pub fn main() {
    println!("{:?}", Iso639_1::En);
    println!("{:?}", from_iso639_1("it"));
    println!("{:?}", to_iso639_3("fr"));
}

Iso639

ISO 639 is a set of standards by the International Organization for Standardization that is concerned with representation of names for languages and language groups. (source https://en.wikipedia.org/wiki/ISO_639)

Iso639-1

See full README.md

iso639-1 Latest Version

Features

Optional features:

  • serde: Enable serialization/deserialization via serde.

Iso639-2

See full README.md

iso639_2 Latest Version

Links

License

Copyright © 2018, Alban Minassian

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The Software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders X be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the Software. Except as contained in this notice, the name of the Alban Minassian shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the Alban Minassian.