verethiel 0.2.0

CLI tool to verify, sort and diff i18n JSON files against a base template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub(crate) mod translation;
pub(crate) use translation::Translation;

mod open_file;
pub(crate) use open_file::open_file;

pub(crate) trait ToSliceArr<T> {
    fn to_slice(&self) -> Vec<&[T]>;
}
impl<T> ToSliceArr<T> for Vec<Vec<T>> {
    fn to_slice(&self) -> Vec<&[T]> {
        self.iter().map(Vec::as_slice).collect()
    }
}