From baf99ffd7b689ee2ce41e5251bee6148b56cd705 Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Thu, 6 May 2021 17:34:22 +0200 Subject: [PATCH] add jsconfig.json, update some of the translations, og:locale is now dynamic, update url to the repository in package.json --- jsconfig.json | 13 +++++++++++++ package.json | 4 ++-- src/components/Seo.js | 4 ++-- src/features/CommandsPage/commands.en.js | 4 ++-- src/features/CommandsPage/commands.pl.js | 4 ++-- src/features/CommandsPage/translations.en.js | 2 +- src/features/CommandsPage/translations.pl.js | 2 +- 7 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 jsconfig.json diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..f417be6 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["src/*"], + "@components/*": ["src/components/*"], + "@config/*": ["src/config/*"], + "@features/*": ["src/features/*"], + "@images/*": ["src/images/*"] + } + }, + "exclude": ["node_modules"] +} diff --git a/package.json b/package.json index 509e5fc..8f297c7 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/components/Seo.js b/src/components/Seo.js index abdf822..e6e3f09 100644 --- a/src/components/Seo.js +++ b/src/components/Seo.js @@ -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 }) { + /> ); } diff --git a/src/features/CommandsPage/commands.en.js b/src/features/CommandsPage/commands.en.js index 1843bf3..0bc8f22 100644 --- a/src/features/CommandsPage/commands.en.js +++ b/src/features/CommandsPage/commands.en.js @@ -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', }, { diff --git a/src/features/CommandsPage/commands.pl.js b/src/features/CommandsPage/commands.pl.js index 82e7f5e..2ef4e1f 100644 --- a/src/features/CommandsPage/commands.pl.js +++ b/src/features/CommandsPage/commands.pl.js @@ -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', }, { diff --git a/src/features/CommandsPage/translations.en.js b/src/features/CommandsPage/translations.en.js index f7353a8..07a2b03 100644 --- a/src/features/CommandsPage/translations.en.js +++ b/src/features/CommandsPage/translations.en.js @@ -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', diff --git a/src/features/CommandsPage/translations.pl.js b/src/features/CommandsPage/translations.pl.js index f206457..8d993ca 100644 --- a/src/features/CommandsPage/translations.pl.js +++ b/src/features/CommandsPage/translations.pl.js @@ -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',