Use i18n
This commit is contained in:
parent
076cc98098
commit
a78632be08
5 changed files with 5 additions and 1 deletions
|
@ -1 +1,2 @@
|
|||
fedihub = FediHub
|
||||
federated-services-without-censorship = Federated services without censorship.
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
fedihub = FediHub
|
||||
federated-services-without-censorship = Федеративные сервисы без цензуры.
|
||||
|
|
|
@ -16,6 +16,7 @@ pub fn index(
|
|||
) -> Result<Template, CommonResponse> {
|
||||
let page_context = views::home::Index {
|
||||
i18n_fedihub: i18n.dummy_translate("en", "fedihub"),
|
||||
i18n_federated_services_without_censorship: i18n.dummy_translate("en", "federated-services-without-censorship"),
|
||||
};
|
||||
|
||||
let context = views::Site {
|
||||
|
|
|
@ -19,6 +19,7 @@ pub mod home {
|
|||
#[derive(Serialize)]
|
||||
pub struct Index {
|
||||
pub i18n_fedihub: String,
|
||||
pub i18n_federated_services_without_censorship: String,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="jumbotron jumbotron-fluid text-center">
|
||||
<div class="container">
|
||||
<h1>{{ i18n_fedihub }}</h1>
|
||||
<p class="lead">Federated services without censorship.</p>
|
||||
<p class="lead">{{ i18n_federated_services_without_censorship }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue