im-web: home + email-confirm titles join the 'Page · im' family form
Browse files at this commit7ff59867a539ff378644c8312e9b54522412868bParent: 10a43fe2 changed files +6 -3
crates/im-web/src/i18n.rsmodified+5 -2
| @@ -129,6 +129,7 @@ pub enum Key { | |||
| 129 | TitleForgot, | 129 | TitleForgot, |
| 130 | TitleReset, | 130 | TitleReset, |
| 131 | TitleAdmin, | 131 | TitleAdmin, |
| 132 | + TitleAccount, | ||
| 132 | 133 | ||
| 133 | // Signed-in landing and person page, shared. | 134 | // Signed-in landing and person page, shared. |
| 134 | TwoFaOn, | 135 | TwoFaOn, |
| @@ -500,6 +501,8 @@ pub fn t(lang: Lang, key: Key) -> &'static str { | |||
| 500 | (TitleReset, Tr) => "Yeni parola · im", | 501 | (TitleReset, Tr) => "Yeni parola · im", |
| 501 | (TitleAdmin, En) => "Admin · im", | 502 | (TitleAdmin, En) => "Admin · im", |
| 502 | (TitleAdmin, Tr) => "Yönetici · im", | 503 | (TitleAdmin, Tr) => "Yönetici · im", |
| 504 | + (TitleAccount, En) => "Account · im", | ||
| 505 | + (TitleAccount, Tr) => "Hesap · im", | ||
| 503 | 506 | ||
| 504 | (TwoFaOn, En) => "2FA on", | 507 | (TwoFaOn, En) => "2FA on", |
| 505 | (TwoFaOn, Tr) => "2FA açık", | 508 | (TwoFaOn, Tr) => "2FA açık", |
| @@ -608,8 +611,8 @@ pub fn t(lang: Lang, key: Key) -> &'static str { | |||
| 608 | (EmailChangeButton, Tr) => "Adresi değiştir", | 611 | (EmailChangeButton, Tr) => "Adresi değiştir", |
| 609 | (EmailChangeNote, En) => "Both addresses confirm: one mail to the old one, one to the new.", | 612 | (EmailChangeNote, En) => "Both addresses confirm: one mail to the old one, one to the new.", |
| 610 | (EmailChangeNote, Tr) => "İki adres de onaylar: eskiye bir, yeniye bir posta.", | 613 | (EmailChangeNote, Tr) => "İki adres de onaylar: eskiye bir, yeniye bir posta.", |
| 611 | - (EmailConfirmTitle, En) => "Confirm email change", | 614 | + (EmailConfirmTitle, En) => "Confirm email change · im", |
| 612 | - (EmailConfirmTitle, Tr) => "E-posta değişikliğini onayla", | 615 | + (EmailConfirmTitle, Tr) => "E-posta değişikliğini onayla · im", |
| 613 | (ConfirmEmailButton, En) => "Confirm", | 616 | (ConfirmEmailButton, En) => "Confirm", |
| 614 | (ConfirmEmailButton, Tr) => "Onayla", | 617 | (ConfirmEmailButton, Tr) => "Onayla", |
| 615 | (OkRevoked, En) => "Sessions revoked — every device is signed out.", | 618 | (OkRevoked, En) => "Sessions revoked — every device is signed out.", |
crates/im-web/src/pages.rsmodified+1 -1
| @@ -972,7 +972,7 @@ async fn signed_in<'a>(cx: &'a Cx, user: im_core::model::User) -> Result<BoxView | |||
| 972 | </main> | 972 | </main> |
| 973 | (crate::layout::avatar_script(cx, lang).await?.first().await?) | 973 | (crate::layout::avatar_script(cx, lang).await?.first().await?) |
| 974 | }; | 974 | }; |
| 975 | - shell(cx, "im", Some(user), Child::new(stage)).await.map(ViewExt::boxed) | 975 | + shell(cx, t(lang, Key::TitleAccount), Some(user), Child::new(stage)).await.map(ViewExt::boxed) |
| 976 | } | 976 | } |
| 977 | 977 | ||
| 978 | /// "Forgot it?" — the self-serve reset ask. It answers the same whether the | 978 | /// "Forgot it?" — the self-serve reset ask. It answers the same whether the |