Fixed incorrectly used translation labels

This commit is contained in:
Aurora Lahtela 2022-10-22 11:32:45 +03:00
parent f4bd580840
commit 4f3e94024d
2 changed files with 4 additions and 5 deletions

View File

@ -32,7 +32,6 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
class UsedLocaleRegressionTest { class UsedLocaleRegressionTest {
// Ensures that all translation keys used in the React project are defined in a lang file. // 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. // If test fails, add a new line to a com.djrapitops.plan.settings.locale.lang.HtmlLang with the key.
@Test @Test

View File

@ -99,13 +99,13 @@ const QueryOptionsCard = () => {
const selected = selectedServers.length; const selected = selectedServers.length;
const available = options.view.servers.length; const available = options.view.servers.length;
if (selected === 0 || selected === available) { if (selected === 0 || selected === available) {
return t('query.label.servers.all'); return t('html.query.label.servers.all');
} else if (selected === 1) { } else if (selected === 1) {
return t('query.label.servers.single'); return t('html.query.label.servers.single');
} else if (selected === 2) { } else if (selected === 2) {
return t('query.label.servers.two'); return t('html.query.label.servers.two');
} else { } else {
return t('query.label.servers.many').replace('{number}', selected); return t('html.query.label.servers.many').replace('{number}', selected);
} }
} }