locale-rs 0.3.0

A strongly-typed locale library for Rust. Provides localized number and datetime formatting backed by Unicode CLDR data.
Documentation
1
2
3
4
5
6
7
8
9
use thiserror::Error;

#[derive(Error, Debug, Clone, PartialEq, Eq)]
pub enum LocaleError {
    #[error("Unknown Error Occurred: '{0}'")]
    Unknown(String),
    #[error("Unknown locale identifier: '{0}'")]
    UnknownLocale(String),
}