From 333142aa67d863615560e4e601eee9ed2621ee51 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 3 Mar 2025 11:55:03 +0800 Subject: [PATCH] Combine both useLingui --- src/components/shortcuts.jsx | 3 +-- src/locales/en.po | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/shortcuts.jsx b/src/components/shortcuts.jsx index 3997717a..64031ba7 100644 --- a/src/components/shortcuts.jsx +++ b/src/components/shortcuts.jsx @@ -21,8 +21,7 @@ import Menu2 from './menu2'; import SubMenu2 from './submenu2'; function Shortcuts() { - const { t } = useLingui(); - const { _ } = useLingui(); + const { t, _ } = useLingui(); const { instance } = api(); const snapStates = useSnapshot(states); const { shortcuts, settings } = snapStates; diff --git a/src/locales/en.po b/src/locales/en.po index 23f81e99..1823737c 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -1486,7 +1486,7 @@ msgid "Lists" msgstr "" #: src/components/nav-menu.jsx:435 -#: src/components/shortcuts.jsx:215 +#: src/components/shortcuts.jsx:214 #: src/pages/list.jsx:134 msgid "All Lists" msgstr "" @@ -1911,7 +1911,7 @@ msgid "Media only" msgstr "" #: src/components/shortcuts-settings.jsx:235 -#: src/components/shortcuts.jsx:192 +#: src/components/shortcuts.jsx:191 msgid "Shortcuts" msgstr ""