add jsconfig.json, update some of the translations, og:locale is now dynamic, update url to the repository in package.json

This commit is contained in:
Dawid Wysokiński 2021-05-06 17:34:22 +02:00
parent 0301aed0b8
commit baf99ffd7b
7 changed files with 23 additions and 10 deletions

13
jsconfig.json Normal file
View File

@ -0,0 +1,13 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@components/*": ["src/components/*"],
"@config/*": ["src/config/*"],
"@features/*": ["src/features/*"],
"@images/*": ["src/images/*"]
}
},
"exclude": ["node_modules"]
}

View File

@ -45,9 +45,9 @@
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
"url": "https://github.com/tribalwarshelp/dcbot.tribalwarshelp.com"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
"url": "https://github.com/tribalwarshelp/dcbot.tribalwarshelp.com/issues"
}
}

View File

@ -74,7 +74,7 @@ function Seo({ description, lang, meta, title, location }) {
},
{
property: `og:locale`,
content: `pl`,
content: lang,
},
{
name: `twitter:card`,
@ -105,7 +105,7 @@ function Seo({ description, lang, meta, title, location }) {
<link
rel="canonical"
content={`${site.siteMetadata.siteUrl}${location}`}
></link>
/>
</Helmet>
);
}

View File

@ -92,14 +92,14 @@ const adminCommands = [
command: 'tw!conqueredvillages',
commandSyntax: 'tw!conqueredvillages [group ID from tw!groups]',
description:
'This command changes the channel on which notifications about conquered village will show. IMPORTANT! Run this command on the channel you want to display these notifications.',
'This command sets the channel on which notifications about conquered village will be displayed. IMPORTANT! Run this command on the channel you want to display these notifications.',
example: 'tw!conqueredvillages 1',
},
{
command: 'tw!lostvillages',
commandSyntax: 'tw!lostvillages [group ID from tw!groups]',
description:
'This command changes the channel on which notifications about lost village will show. IMPORTANT! Run this command on the channel you want to display these notifications.',
'This command sets the channel on which notifications about lost village will be displayed. IMPORTANT! Run this command on the channel you want to display these notifications.',
example: 'tw!lostvillages 2',
},
{

View File

@ -91,14 +91,14 @@ const adminCommands = [
command: 'tw!conqueredvillages',
commandSyntax: 'tw!conqueredvillages [ID grupy z tw!groups]',
description:
'Zmienia kanał na którym będą się pojawiać informację o podbitych wioskach w danej grupie. WAŻNE! Wywołaj tę komendę na kanale na którym chcesz dostawać te powiadomienia.',
'Ustawia kanał na którym będą się pojawiać informację o podbitych wioskach w danej grupie. WAŻNE! Wywołaj tę komendę na kanale na którym chcesz dostawać te powiadomienia.',
example: 'tw!conqueredvillages 1',
},
{
command: 'tw!lostvillages',
commandSyntax: 'tw!lostvillages [ID grupy z tw!groups]',
description:
'Zmienia kanał na którym będą się pojawiać informację o straconych wioskach w danej grupie. WAŻNE! Wywołaj tę komendę na kanale na którym chcesz dostawać te powiadomienia.',
'Ustawia kanał na którym będą się pojawiać informację o straconych wioskach w danej grupie. WAŻNE! Wywołaj tę komendę na kanale na którym chcesz dostawać te powiadomienia.',
example: 'tw!lostvillages 2',
},
{

View File

@ -1,6 +1,6 @@
const translations = {
title: 'Commands',
description: 'List of commands offered by TWHelp Discord Bot with examples',
description: 'List of commands offered by the bot with examples',
example: 'Example',
commandsForEveryoneSection: {
title: 'For everyone',

View File

@ -1,7 +1,7 @@
const translations = {
title: 'Komendy',
description:
'Lista komend oferowanych przez TWHelp Discord Bot z przykładami',
'Lista komend oferowanych przez bota z przykładami',
example: 'Przykład',
commandsForEveryoneSection: {
title: 'Dla wszystkich',