MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / App

Function App

preview/src/main.rs:118–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117#[component]
118pub 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)]
133pub enum Route {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected