forge
Explore
Log in

Don't you dare go Hollow

im-web: home + email-confirm titles join the 'Page · im' family form

Browse files at this commit

7ff59867a539ff378644c8312e9b54522412868bAhmet Kaan GümüşParent: 10a43fe
crates/im-web/src/i18n.rsmodified+5 -2
@@ -129,6 +129,7 @@ pub enum Key {
129129 TitleForgot,
130130 TitleReset,
131131 TitleAdmin,
132+ TitleAccount,
132133
133134 // Signed-in landing and person page, shared.
134135 TwoFaOn,
@@ -500,6 +501,8 @@ pub fn t(lang: Lang, key: Key) -> &'static str {
500501 (TitleReset, Tr) => "Yeni parola · im",
501502 (TitleAdmin, En) => "Admin · im",
502503 (TitleAdmin, Tr) => "Yönetici · im",
504+ (TitleAccount, En) => "Account · im",
505+ (TitleAccount, Tr) => "Hesap · im",
503506
504507 (TwoFaOn, En) => "2FA on",
505508 (TwoFaOn, Tr) => "2FA açık",
@@ -608,8 +611,8 @@ pub fn t(lang: Lang, key: Key) -> &'static str {
608611 (EmailChangeButton, Tr) => "Adresi değiştir",
609612 (EmailChangeNote, En) => "Both addresses confirm: one mail to the old one, one to the new.",
610613 (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",
613616 (ConfirmEmailButton, En) => "Confirm",
614617 (ConfirmEmailButton, Tr) => "Onayla",
615618 (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
972972 </main>
973973 (crate::layout::avatar_script(cx, lang).await?.first().await?)
974974 };
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)
976976 }
977977
978978 /// "Forgot it?" — the self-serve reset ask. It answers the same whether the