Skip to main content

qcli/
lib.rs

1//! A small coding agent in the terminal: a chat with a model that can read, list, search, edit
2//! and run inside one folder, and asks before it changes anything.
3
4pub mod actions;
5pub mod app;
6pub mod config;
7pub mod conversation;
8pub mod instructions;
9pub mod provider;
10pub mod store;
11
12pub use app::run;
13
14/// The application's own locale files, compiled in so an installed program carries its text
15/// with it. Each is `(file name, contents)`. English comes first: it is the language every other
16/// file is checked against.
17#[must_use]
18pub fn locales() -> &'static [(&'static str, &'static str)] {
19    &[
20        ("en.toml", include_str!("../locales/en.toml")),
21        ("de.toml", include_str!("../locales/de.toml")),
22        ("es.toml", include_str!("../locales/es.toml")),
23        ("fr.toml", include_str!("../locales/fr.toml")),
24        ("ja.toml", include_str!("../locales/ja.toml")),
25        ("pt-BR.toml", include_str!("../locales/pt-BR.toml")),
26        ("ru.toml", include_str!("../locales/ru.toml")),
27        ("tr.toml", include_str!("../locales/tr.toml")),
28        ("zh-Hans.toml", include_str!("../locales/zh-Hans.toml")),
29    ]
30}
31
32#[cfg(test)]
33mod languages;