From 4f3e94024daf5de9a46170a119daa1a0a94f3486 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sat, 22 Oct 2022 11:32:45 +0300 Subject: [PATCH] Fixed incorrectly used translation labels --- .../plan/settings/locale/UsedLocaleRegressionTest.java | 1 - .../src/components/cards/query/QueryOptionsCard.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Plan/common/src/test/java/com/djrapitops/plan/settings/locale/UsedLocaleRegressionTest.java b/Plan/common/src/test/java/com/djrapitops/plan/settings/locale/UsedLocaleRegressionTest.java index 867469701..0f38da0b2 100644 --- a/Plan/common/src/test/java/com/djrapitops/plan/settings/locale/UsedLocaleRegressionTest.java +++ b/Plan/common/src/test/java/com/djrapitops/plan/settings/locale/UsedLocaleRegressionTest.java @@ -32,7 +32,6 @@ import static org.junit.jupiter.api.Assertions.assertTrue; class UsedLocaleRegressionTest { - // Ensures that all translation keys used in the React project are defined in a lang file. // If test fails, add a new line to a com.djrapitops.plan.settings.locale.lang.HtmlLang with the key. @Test diff --git a/Plan/react/dashboard/src/components/cards/query/QueryOptionsCard.js b/Plan/react/dashboard/src/components/cards/query/QueryOptionsCard.js index 3e5c772bc..f5e37b04b 100644 --- a/Plan/react/dashboard/src/components/cards/query/QueryOptionsCard.js +++ b/Plan/react/dashboard/src/components/cards/query/QueryOptionsCard.js @@ -99,13 +99,13 @@ const QueryOptionsCard = () => { const selected = selectedServers.length; const available = options.view.servers.length; if (selected === 0 || selected === available) { - return t('query.label.servers.all'); + return t('html.query.label.servers.all'); } else if (selected === 1) { - return t('query.label.servers.single'); + return t('html.query.label.servers.single'); } else if (selected === 2) { - return t('query.label.servers.two'); + return t('html.query.label.servers.two'); } else { - return t('query.label.servers.many').replace('{number}', selected); + return t('html.query.label.servers.many').replace('{number}', selected); } }