mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-13 15:00:15 +01:00
feat: experimental AI support
This commit is contained in:
parent
070343a5e2
commit
5d7624563d
6 changed files with 1312 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ mod replaces;
|
|||
#[cfg(feature = "runtime-rules")]
|
||||
mod runtime_rules;
|
||||
|
||||
#[cfg(feature = "request-ai")]
|
||||
mod requests;
|
||||
|
||||
#[macro_use]
|
||||
extern crate rust_i18n;
|
||||
i18n!("i18n", fallback = "en", minify_key = true);
|
||||
|
|
@ -40,6 +43,11 @@ fn main() {
|
|||
let locale = get_locale().unwrap_or("en_US".to_string());
|
||||
rust_i18n::set_locale(&locale[0..2]);
|
||||
|
||||
#[cfg(feature = "request-ai")]
|
||||
{
|
||||
std::env::set_var("_PR_LOCALE", &locale);
|
||||
}
|
||||
|
||||
args::handle_args();
|
||||
|
||||
let shell = match std::env::var("_PR_SHELL") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue