✨ 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:
parent
efc4839613
commit
208ad83bea
13 changed files with 780 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue