🚧 Ajustes menores en rutas y localización
- Añade `Route::try_resolve()` y `RoutePath::is_empty()` para omitir atributos HTML opcionales cuando la ruta resultante está vacía. - Renombra `Locale::configured_langid()` a `try_langid()` (convención `try_*` para Option). - Reordena include_locales! y otros cambios menores.
This commit is contained in:
parent
8573aca29e
commit
b9d9cdf601
6 changed files with 22 additions and 7 deletions
|
|
@ -3,6 +3,8 @@ use crate::{AutoDefault, CowStr, include_locales};
|
|||
|
||||
use super::{LangId, Locale};
|
||||
|
||||
include_locales!(LOCALES_PAGETOP);
|
||||
|
||||
use fluent_templates::Loader;
|
||||
use fluent_templates::StaticLoader as Locales;
|
||||
|
||||
|
|
@ -10,8 +12,6 @@ use std::collections::HashMap;
|
|||
|
||||
use std::fmt;
|
||||
|
||||
include_locales!(LOCALES_PAGETOP);
|
||||
|
||||
/// Operación de localización a realizar.
|
||||
///
|
||||
/// * `None` - No se aplica ninguna localización.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue