Skip to main content

llman/
lib.rs

1#[macro_use]
2extern crate rust_i18n;
3
4i18n!("locales");
5
6use std::sync::OnceLock;
7
8pub mod arg_utils;
9pub mod cli;
10pub mod config;
11pub mod config_schema;
12pub mod editor;
13pub mod env_safety;
14pub mod error;
15pub(crate) mod fs_utils;
16pub mod managed_block;
17pub mod path_utils;
18pub mod prompts;
19pub mod sdd;
20pub mod self_command;
21pub mod skills;
22pub mod tool;
23pub mod usage_stats;
24pub mod x;
25
26#[cfg(test)]
27pub mod test_utils;
28
29static LOCALE_INIT: OnceLock<()> = OnceLock::new();
30
31pub fn init_locale() {
32    LOCALE_INIT.get_or_init(|| {
33        rust_i18n::set_locale("en");
34    });
35}