mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
feat: config file
This commit is contained in:
parent
6ba4591db9
commit
2699238bb1
16 changed files with 452 additions and 286 deletions
|
|
@ -73,8 +73,7 @@ pub async fn ai_suggestion(last_command: &str, error_msg: &str, locale: &str) {
|
|||
map.insert("error_msg", error_msg);
|
||||
|
||||
let user_locale = {
|
||||
let locale = std::env::var("_PR_AI_LOCALE")
|
||||
.unwrap_or_else(|_| locale.to_string());
|
||||
let locale = std::env::var("_PR_AI_LOCALE").unwrap_or_else(|_| locale.to_string());
|
||||
if locale.len() < 2 {
|
||||
"en-US".to_string()
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue