Añade soporte para localización y traducción

- Incluye recursos Fluent básicos y pruebas asociadas.
- Nueva variable de configuración global para definir el idioma
  predeterminado.
This commit is contained in:
Manuel Cillero 2025-07-09 20:39:39 +02:00
parent efc4839613
commit 208ad83bea
13 changed files with 780 additions and 3 deletions

View file

@ -8,6 +8,7 @@ include_config!(SETTINGS: Settings => [
// [app]
"app.name" => "Sample",
"app.description" => "Developed with the amazing PageTop framework.",
"app.language" => "en-US",
"app.startup_banner" => "Slant",
// [log]
@ -38,6 +39,8 @@ pub struct App {
pub name: String,
/// Breve descripción de la aplicación.
pub description: String,
/// Idioma predeterminado (localización).
pub language: String,
/// Banner ASCII mostrado al inicio: *"Off"* (desactivado), *"Slant"*, *"Small"*, *"Speed"* o
/// *"Starwars"*.
pub startup_banner: String,