Skip to content

Commit 6a05c63

Browse files
committed
fix: made i18n example use the right locales function
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.
1 parent 18f54a9 commit 6a05c63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/core/i18n/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub fn main<G: Html>() -> PerseusApp<G> {
88
PerseusApp::new()
99
.template(crate::templates::index::get_template)
1010
.template(crate::templates::about::get_template)
11+
.template(crate::templates::post::get_template)
1112
.error_pages(crate::error_pages::get_error_pages)
12-
.locales("en-US", &["fr-FR", "es_ES"])
13+
.locales_and_translations_manager("en-US", &["fr-FR", "es-ES"])
1314
}

0 commit comments

Comments
 (0)