fix: fix grammatical mistakes in the English translation
This commit is contained in:
parent
43c0edf5dc
commit
c07b147cbd
|
@ -39,7 +39,7 @@ const useStyles = makeStyles(theme => ({
|
|||
function LanguageSelector({ lang, languages, pathname }) {
|
||||
const classes = useStyles();
|
||||
|
||||
const formatURL = l => {
|
||||
const buildURL = l => {
|
||||
if (pathname.includes(lang)) {
|
||||
return pathname.replace(lang, l);
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ function LanguageSelector({ lang, languages, pathname }) {
|
|||
{languages.map(l => (
|
||||
<Link
|
||||
key={l}
|
||||
to={formatURL(l).replace(`/${languages[0]}/`, "/")}
|
||||
to={buildURL(l).replace(`/${languages[0]}/`, "/")}
|
||||
className={classes.flagWrapper}
|
||||
>
|
||||
<img className={classes.flag} src={flags[l]} alt={l} />
|
||||
|
|
|
@ -22,10 +22,10 @@ const CommandsPage = ({ location, pageContext }) => {
|
|||
<Container>
|
||||
<Box mb={3} component="section">
|
||||
<Typography variant="h2" component="h1" align="center" gutterBottom>
|
||||
{t.commandsForAllSection.title}
|
||||
{t.commandsForEveryoneSection.title}
|
||||
</Typography>
|
||||
<Grid container spacing={2}>
|
||||
{c.commandsForAll.map(cmd => (
|
||||
{c.commandsForEveryone.map(cmd => (
|
||||
<Grid key={cmd.command} item xs={12} sm={6}>
|
||||
<Command {...cmd} />
|
||||
</Grid>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const commandsForAll = [
|
||||
const commandsForEveryone = [
|
||||
{
|
||||
command: "tw!help",
|
||||
commandSyntax: "tw!help",
|
||||
|
@ -10,7 +10,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe topoda [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list from selected tribes ordered by ODA.",
|
||||
"This command generates a player list from selected tribes ordered by ODA.",
|
||||
example: "tw!tribe topoda pl143 1 975 170",
|
||||
},
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe topodd [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list from selected tribes ordered by ODD.",
|
||||
"This command generates a player list from selected tribes ordered by ODD.",
|
||||
example: "tw!tribe topodd pl143 1 975 170",
|
||||
},
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe topods [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list from selected tribes ordered by ODS.",
|
||||
"This command generates a player list from selected tribes ordered by ODS.",
|
||||
example: "tw!tribe topods pl143 1 975 170",
|
||||
},
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe topod [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list from selected tribes ordered by OD.",
|
||||
"This command generates a player list from selected tribes ordered by OD.",
|
||||
example: "tw!tribe topod pl143 1 975 170",
|
||||
},
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe toppoints [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list from selected tribes ordered by points.",
|
||||
"This command generates a player list from selected tribes ordered by points.",
|
||||
example: "tw!tribe toppoints pl143 1 975 170",
|
||||
},
|
||||
];
|
||||
|
@ -58,7 +58,7 @@ const adminCommands = [
|
|||
command: "tw!groups",
|
||||
commandSyntax: "tw!addgroup",
|
||||
description:
|
||||
"This command shows you a list of groups created by this guild.",
|
||||
"This command shows you a list of groups created by this server.",
|
||||
example: "tw!addgroup",
|
||||
},
|
||||
{
|
||||
|
@ -76,7 +76,8 @@ const adminCommands = [
|
|||
{
|
||||
command: "tw!observations",
|
||||
commandSyntax: "tw!observations [group ID from tw!groups]",
|
||||
description: "This command shows a list of observed tribes by this group.",
|
||||
description:
|
||||
"This command shows a list of monitored tribes added to this group.",
|
||||
example: "tw!observations 1",
|
||||
},
|
||||
{
|
||||
|
@ -147,6 +148,6 @@ const adminCommands = [
|
|||
];
|
||||
|
||||
export default {
|
||||
commandsForAll,
|
||||
commandsForEveryone,
|
||||
adminCommands,
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const commandsForAll = [
|
||||
const commandsForEveryone = [
|
||||
{
|
||||
command: "tw!help",
|
||||
commandSyntax: "tw!help",
|
||||
|
@ -147,6 +147,6 @@ const adminCommands = [
|
|||
];
|
||||
|
||||
export default {
|
||||
commandsForAll,
|
||||
commandsForEveryone,
|
||||
adminCommands,
|
||||
};
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
export default {
|
||||
title: "Commands",
|
||||
description: "List of commands offered by TWHelp Discord Bot with examples",
|
||||
commandsForAllSection: {
|
||||
title: "Commands for all guild members",
|
||||
commandsForEveryoneSection: {
|
||||
title: "For everyone",
|
||||
},
|
||||
adminCommandsSection: {
|
||||
title: "Admin commands",
|
||||
title: "For admins",
|
||||
},
|
||||
};
|
||||
|
|
|
@ -2,10 +2,10 @@ export default {
|
|||
title: "Komendy",
|
||||
description:
|
||||
"Lista komend oferowanych przez TWHelp Discord Bot z przykładami",
|
||||
commandsForAllSection: {
|
||||
title: "Komendy dla wszystkich",
|
||||
commandsForEveryoneSection: {
|
||||
title: "Dla wszystkich",
|
||||
},
|
||||
adminCommandsSection: {
|
||||
title: "Komendy przeznaczone tylko dla administratorów",
|
||||
title: "Dla adminów",
|
||||
},
|
||||
};
|
||||
|
|
|
@ -43,7 +43,7 @@ const IndexPage = ({ location, pageContext }) => {
|
|||
botInviteUrl
|
||||
}
|
||||
}
|
||||
allSs: allFile(filter: { absolutePath: { regex: "/screenshots/" } }) {
|
||||
screenshots: allFile(filter: { absolutePath: { regex: "/screenshots/" } }) {
|
||||
edges {
|
||||
node {
|
||||
relativePath
|
||||
|
@ -59,7 +59,7 @@ const IndexPage = ({ location, pageContext }) => {
|
|||
}
|
||||
`);
|
||||
const t = translations[pageContext.langKey];
|
||||
const ss = data.allSs.edges.find(edge => {
|
||||
const ss = data.screenshots.edges.find(edge => {
|
||||
if (edge.node.relativePath.includes(pageContext.langKey)) return edge;
|
||||
return null;
|
||||
});
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
export default {
|
||||
title: "Home",
|
||||
description:
|
||||
"Discord bot for online game Tribalwars. | Real-time notifications about lost/conquered village.",
|
||||
"Discord bot for the online game Tribalwars. | Real-time notifications about lost/conquered village.",
|
||||
header: {
|
||||
title: "Observe your tribe ennoblements!",
|
||||
description:
|
||||
"This bot notifies you about conquered/lost village in near real-time.",
|
||||
"This bot notifies you of conquered/lost village in near real-time.",
|
||||
inviteBot: "Invite bot to your server",
|
||||
commands: "Commands",
|
||||
},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export default {
|
||||
title: "Strona główna",
|
||||
description:
|
||||
"Powiadomienia o podbiciu/straceniu wioski przez plemię w grze TribalWars na Twoim serwerze Discord.",
|
||||
"Bot na Discorda dla gry Plemiona. | Notyfikacje o podbiciu/stracie wioski w czasie rzeczywistym.",
|
||||
header: {
|
||||
title: "Obserwuj podboje swojego plemienia!",
|
||||
description:
|
||||
|
|
Reference in New Issue
Block a user