I18n fairing

This commit is contained in:
Bat
2018-06-15 14:55:14 +01:00
parent c9b4c40fa1
commit 327768d3fe
2 changed files with 44 additions and 0 deletions
+2
View File
@@ -39,6 +39,7 @@ use std::env;
mod activity_pub;
mod db_conn;
mod i18n;
mod models;
mod schema;
mod routes;
@@ -128,5 +129,6 @@ fn main() {
])
.manage(init_pool())
.attach(Template::fairing())
.attach(i18n::I18n::new("plume"))
.launch();
}