Skip to content

Commit

Permalink
fix: made i18n example use the right locales function
Browse files Browse the repository at this point in the history
I made the mistake I explicitly documented about how to not make. Once
again, I can *occasionally* convince myself that I have any clue of what
I'm doing. Now is not one of those moments.
  • Loading branch information
arctic-hen7 committed Mar 29, 2022
1 parent 18f54a9 commit 6a05c63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/core/i18n/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template)
.template(crate::templates::about::get_template)
.template(crate::templates::post::get_template)
.error_pages(crate::error_pages::get_error_pages)
.locales("en-US", &["fr-FR", "es_ES"])
.locales_and_translations_manager("en-US", &["fr-FR", "es-ES"])
}

0 comments on commit 6a05c63

Please sign in to comment.