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 error;
14pub(crate) mod fs_utils;
15pub mod managed_block;
16pub mod path_utils;
17pub mod prompts;
18pub mod sdd;
19pub mod self_command;
20pub mod skills;
21pub mod tool;
22pub mod usage_stats;
23pub mod x;
24
25#[cfg(test)]
26pub mod test_utils;
27
28static LOCALE_INIT: OnceLock<()> = OnceLock::new();
29
30pub fn init_locale() {
31    LOCALE_INIT.get_or_init(|| {
32        rust_i18n::set_locale("en");
33    });
34}