Try fix "Uncompiled message detected" warnings from Lingui

pull/1250/head
Lim Chee Aun 2025-08-24 17:29:36 +08:00
rodzic a53aa522d9
commit b2515fd283
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -58,12 +58,14 @@ function Shortcuts() {
}
if (typeof title === 'function') {
title = title(data, i);
} else {
} else if (title?.id) {
// Check if it's MessageDescriptor
title = _(title);
}
if (typeof subtitle === 'function') {
subtitle = subtitle(data, i);
} else {
} else if (subtitle?.id) {
// Check if it's MessageDescriptor
subtitle = _(subtitle);
}
if (typeof icon === 'function') {

4
src/locales/en.po wygenerowano
Wyświetl plik

@ -1543,7 +1543,7 @@ msgid "Lists"
msgstr ""
#: src/components/nav-menu.jsx:440
#: src/components/shortcuts.jsx:241
#: src/components/shortcuts.jsx:243
#: src/pages/list.jsx:139
msgid "All Lists"
msgstr ""
@ -1991,7 +1991,7 @@ msgid "Media only"
msgstr ""
#: src/components/shortcuts-settings.jsx:235
#: src/components/shortcuts.jsx:218
#: src/components/shortcuts.jsx:220
msgid "Shortcuts"
msgstr ""