#[derive(Debug, Clone)]
pub struct InitOptions {
pub language: String,
pub preload_dir: Option<String>,
pub diagnostics: bool,
}
impl Default for InitOptions {
fn default() -> Self {
Self { language: "en".to_string(), preload_dir: None, diagnostics: false }
}
}
#[derive(Debug, Clone)]
pub struct InitReport {
pub files_loaded: usize,
pub translations_count: usize,
pub errors: Vec<String>,
}
impl InitReport {
pub fn new() -> Self {
Self { files_loaded: 0, translations_count: 0, errors: Vec::new() }
}
}
impl Default for InitReport {
fn default() -> Self {
Self::new()
}
}