()
| 116 | |
| 117 | #[component] |
| 118 | pub fn App() -> Element { |
| 119 | use_init_i18n(|| { |
| 120 | I18nConfig::new(langid!("en-US")) |
| 121 | .with_locale((langid!("en-US"), include_str!("i18n/en-US.ftl"))) |
| 122 | .with_locale((langid!("fr-FR"), include_str!("i18n/fr-FR.ftl"))) |
| 123 | .with_locale((langid!("es-ES"), include_str!("i18n/es-ES.ftl"))) |
| 124 | .with_locale((langid!("de-DE"), include_str!("i18n/de-DE.ftl"))) |
| 125 | }); |
| 126 | |
| 127 | rsx! { |
| 128 | Router::<Route> {} |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | #[derive(Routable, Clone, PartialEq)] |
| 133 | pub enum Route { |
nothing calls this directly
no outgoing calls
no test coverage detected