mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 09:37:54 +01:00
Fixed incorrectly used translation labels
This commit is contained in:
parent
f4bd580840
commit
4f3e94024d
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user