🔖 [pagetop] release development version 0.0.57

This commit is contained in:
Manuel Cillero 2024-12-01 12:38:51 +01:00
parent 43883eebd3
commit 88b7bb88c5
4 changed files with 7 additions and 9 deletions

View file

@ -129,8 +129,6 @@ pub fn configure_services(scfg: &mut service::web::ServiceConfig) {
m.configure_service(scfg);
}
include_files_service!(
scfg,
assets => "/",
[&global::SETTINGS.dev.pagetop_project_dir, "static/assets"]
scfg, assets => "/", [&global::SETTINGS.dev.pagetop_project_dir, "static"]
);
}

View file

@ -112,13 +112,13 @@ static LANGUAGES: LazyLock<HashMap<String, (LanguageIdentifier, &str)>> = LazyLo
]
});
static FALLBACK: LazyLock<LanguageIdentifier> = LazyLock::new(|| langid!("en-US"));
pub static FALLBACK_LANGID: LazyLock<LanguageIdentifier> = LazyLock::new(|| langid!("en-US"));
/// Sets the application's default
/// [Unicode Language Identifier](https://unicode.org/reports/tr35/tr35.html#Unicode_language_identifier)
/// through `SETTINGS.app.language`.
pub static DEFAULT_LANGID: LazyLock<&LanguageIdentifier> =
LazyLock::new(|| langid_for(&global::SETTINGS.app.language).unwrap_or(&FALLBACK));
LazyLock::new(|| langid_for(&global::SETTINGS.app.language).unwrap_or(&FALLBACK_LANGID));
pub enum LangError {
EmptyLang,