🚧 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
|
|
@ -170,7 +170,7 @@ impl Locale {
|
|||
/// Devuelve el identificador de idioma configurado explícitamente, si es válido.
|
||||
///
|
||||
/// Si no se ha configurado un idioma por defecto o el valor no es válido, devuelve `None`.
|
||||
pub fn configured_langid() -> Option<&'static LanguageIdentifier> {
|
||||
pub fn try_langid() -> Option<&'static LanguageIdentifier> {
|
||||
*CONFIG_LANGID
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue