Set user language to new recipe + cleaning
This commit is contained in:
parent
8b4b788562
commit
03ebbb74fa
12 changed files with 73 additions and 86 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{sync::LazyLock, time::Duration};
|
||||
use std::time::Duration;
|
||||
|
||||
pub const FILE_CONF: &str = "conf.ron";
|
||||
pub const TRANSLATION_FILE: &str = "translation.ron";
|
||||
|
|
@ -23,10 +23,3 @@ pub const SEND_EMAIL_TIMEOUT: Duration = Duration::from_secs(60);
|
|||
pub const REVERSE_PROXY_IP_HTTP_FIELD: &str = "x-real-ip"; // Set by the reverse proxy (Nginx).
|
||||
|
||||
pub const MAX_DB_CONNECTION: u32 = 1; // To avoid database lock.
|
||||
|
||||
// TODO: remove, should be replaced by the translation module.
|
||||
pub static LANGUAGES: LazyLock<[(&str, &str); 2]> = LazyLock::new(|| {
|
||||
let mut langs = [("Français", "fr"), ("English", "en")];
|
||||
langs.sort();
|
||||
langs
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue