maomi_tools/lib.rs
1pub mod config;
2
3pub mod i18n {
4 use rustc_hash::FxHashMap;
5
6 pub type Locale = FxHashMap<String, FxHashMap<String, String>>;
7
8 pub const METADATA_VERSION: u32 = 1;
9
10 #[derive(serde::Serialize)]
11 pub struct FormatMetadata<'a> {
12 pub item: Vec<FormatMetadataItem<'a>>,
13 }
14
15 #[derive(serde::Serialize)]
16 pub struct FormatMetadataItem<'a> {
17 pub namespace: &'a str,
18 pub src: &'a str,
19 pub translated: Option<&'a str>,
20 }
21}