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 | 129 | TitleForgot, |
| 130 | 130 | TitleReset, |
| 131 | 131 | TitleAdmin, |
| 132 | + TitleAccount, | |
| 132 | 133 | |
| 133 | 134 | // Signed-in landing and person page, shared. |
| 134 | 135 | TwoFaOn, |
| @@ -500,6 +501,8 @@ pub fn t(lang: Lang, key: Key) -> &'static str { | ||
| 500 | 501 | (TitleReset, Tr) => "Yeni parola · im", |
| 501 | 502 | (TitleAdmin, En) => "Admin · im", |
| 502 | 503 | (TitleAdmin, Tr) => "Yönetici · im", |
| 504 | + (TitleAccount, En) => "Account · im", | |
| 505 | + (TitleAccount, Tr) => "Hesap · im", | |
| 503 | 506 | |
| 504 | 507 | (TwoFaOn, En) => "2FA on", |
| 505 | 508 | (TwoFaOn, Tr) => "2FA açık", |
| @@ -608,8 +611,8 @@ pub fn t(lang: Lang, key: Key) -> &'static str { | ||
| 608 | 611 | (EmailChangeButton, Tr) => "Adresi değiştir", |
| 609 | 612 | (EmailChangeNote, En) => "Both addresses confirm: one mail to the old one, one to the new.", |
| 610 | 613 | (EmailChangeNote, Tr) => "İki adres de onaylar: eskiye bir, yeniye bir posta.", |
| 611 | - (EmailConfirmTitle, En) => "Confirm email change", | |
| 612 | - (EmailConfirmTitle, Tr) => "E-posta değişikliğini onayla", | |
| 614 | + (EmailConfirmTitle, En) => "Confirm email change · im", | |
| 615 | + (EmailConfirmTitle, Tr) => "E-posta değişikliğini onayla · im", | |
| 613 | 616 | (ConfirmEmailButton, En) => "Confirm", |
| 614 | 617 | (ConfirmEmailButton, Tr) => "Onayla", |
| 615 | 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 | 972 | </main> |
| 973 | 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 | 978 | /// "Forgot it?" — the self-serve reset ask. It answers the same whether the |