From 49a8b4543822f39de77e5aded1e4ed12b1f4082b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 14 Jan 2025 12:52:37 +0800 Subject: [PATCH] Fix Log in title not working and not localised --- src/locales/en.po | 1 + src/pages/login.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/locales/en.po b/src/locales/en.po index 22a5b882..5beaabf4 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -1405,6 +1405,7 @@ msgid "Accounts…" msgstr "" #: src/components/nav-menu.jsx:315 +#: src/pages/login.jsx:27 #: src/pages/login.jsx:190 #: src/pages/status.jsx:837 #: src/pages/welcome.jsx:65 diff --git a/src/pages/login.jsx b/src/pages/login.jsx index 9d9980ca..7cca2829 100644 --- a/src/pages/login.jsx +++ b/src/pages/login.jsx @@ -24,7 +24,7 @@ const { PHANPY_DEFAULT_INSTANCE: DEFAULT_INSTANCE } = import.meta.env; function Login() { const { t } = useLingui(); - useTitle('Log in'); + useTitle(t`Log in`, '/login'); const instanceURLRef = useRef(); const cachedInstanceURL = store.local.get('instanceURL'); const [uiState, setUIState] = useState('default');