From 72b64909aec72329ec294dfd937c7e1e821ac9a4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 16:47:26 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump eslint-plugin-prettier from 5.1.1 to 5.1.2 Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.1.1 to 5.1.2. - [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases) - [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.1.1...v5.1.2) --- updated-dependencies: - dependency-name: eslint-plugin-prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 34 +++++++++++++++++----------------- package.json | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9bd2e13..b9a2ade 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.1", + "eslint-plugin-prettier": "^5.1.2", "i18next-resources-for-ts": "^1.4.0", "jest": "^29.7.0", "nodemon": "^3.0.2", @@ -2354,9 +2354,9 @@ ] }, "node_modules/big-integer": { - "version": "1.6.51", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", "dev": true, "engines": { "node": ">=0.6" @@ -3097,9 +3097,9 @@ } }, "node_modules/default-browser/node_modules/npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.2.0.tgz", + "integrity": "sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==", "dev": true, "dependencies": { "path-key": "^4.0.0" @@ -3499,19 +3499,19 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.1.tgz", - "integrity": "sha512-WQpV3mSmIobb77s4qiCZu3dBrZZ0rj8ckSfBtRrgNK9Wnh2s3eiaxNTWloz1LJ1WtvqZES/PAI7PLvsrGt/CEA==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.2.tgz", + "integrity": "sha512-dhlpWc9vOwohcWmClFcA+HjlvUpuyynYs0Rf+L/P6/0iQE6vlHW9l5bkfzN62/Stm9fbq8ku46qzde76T1xlSg==", "dev": true, "dependencies": { "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.8.5" + "synckit": "^0.8.6" }, "engines": { "node": "^14.18.0 || >=16.0.0" }, "funding": { - "url": "https://opencollective.com/prettier" + "url": "https://opencollective.com/eslint-plugin-prettier" }, "peerDependencies": { "@types/eslint": ">=8.0.0", @@ -7043,13 +7043,13 @@ } }, "node_modules/synckit": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", - "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.6.tgz", + "integrity": "sha512-laHF2savN6sMeHCjLRkheIU4wo3Zg9Ln5YOjOo7sZ5dVQW8yF5pPE5SIw1dsPhq3TRp1jisKRCdPhfs/1WMqDA==", "dev": true, "dependencies": { - "@pkgr/utils": "^2.3.1", - "tslib": "^2.5.0" + "@pkgr/utils": "^2.4.2", + "tslib": "^2.6.2" }, "engines": { "node": "^14.18.0 || >=16.0.0" diff --git a/package.json b/package.json index 8a0be87..da0fb80 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.1", + "eslint-plugin-prettier": "^5.1.2", "i18next-resources-for-ts": "^1.4.0", "jest": "^29.7.0", "nodemon": "^3.0.2", From 16dd878a4888670f0224ae9bf310972cfcaceaf5 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Tue, 26 Dec 2023 00:14:37 +0100 Subject: [PATCH 2/2] lang: rewrite wording on recovering track from history to replaying --- locales/en/bot.json | 2 +- locales/es-ES/bot.json | 2 +- locales/no/bot.json | 2 +- locales/ro/bot.json | 2 +- src/interactions/commands/player/back.ts | 2 +- src/interactions/components/action-previous-button.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/locales/en/bot.json b/locales/en/bot.json index 9b66415..61c38d7 100644 --- a/locales/en/bot.json +++ b/locales/en/bot.json @@ -17,7 +17,7 @@ "trackHistoryEmpty": "{{icon}} **Oops!**\nThe history is empty, add some tracks with {{playCommand}}!", "trackPositionHigherThanHistoryLength_one": "{{icon}} **Oops!**\nThere is only **1** track in the history. You cannot go back to track **{{backPosition}}**.\n\nView tracks added in the history with {{historyCommand}}.", "trackPositionHigherThanHistoryLength": "{{icon}} **Oops!**\nThere are only **{{count}}** tracks in the history. You cannot go back to track **{{backPosition}}**.\n\nView tracks added in the history with {{historyCommand}}.", - "trackRecovered": "{{icon}} **Recovered track**\n{{track}}" + "trackReplayed": "{{icon}} **Replaying track**\n{{track}}" }, "filters": { "metadata": { diff --git a/locales/es-ES/bot.json b/locales/es-ES/bot.json index a634492..c1ea2e2 100644 --- a/locales/es-ES/bot.json +++ b/locales/es-ES/bot.json @@ -18,7 +18,7 @@ "trackPositionHigherThanHistoryLength_one": "", "trackPositionHigherThanHistoryLength_few": "", "trackPositionHigherThanHistoryLength_many": "", - "trackRecovered": "" + "trackReplayed": "" }, "filters": { "metadata": { diff --git a/locales/no/bot.json b/locales/no/bot.json index dd3faf3..ba2cd46 100644 --- a/locales/no/bot.json +++ b/locales/no/bot.json @@ -18,7 +18,7 @@ "trackPositionHigherThanHistoryLength_one": "{{icon}} **Oi sann!**\nDet er bare **1** låt i historikken. Du kan ikke gå tilbake til posisjon **{{backPosition}}**.\n\nVis låter lagt til i historikken med {{historyCommand}}.", "trackPositionHigherThanHistoryLength_few": "{{icon}} **Oi sann!**\nDet er bare **{{count}}** låter i historikken. Du kan ikke gå tilbake til posisjon **{{backPosition}}**.\n\nVis låter lagt til i historikken med {{historyCommand}}.", "trackPositionHigherThanHistoryLength_many": "{{icon}} **Oi sann!**\nDet er bare **{{count}}** låter i historikken. Du kan ikke gå tilbake til posisjon **{{backPosition}}**.\n\nVis låter lagt til i historikken med {{historyCommand}}.", - "trackRecovered": "{{icon}} **Gjenopprettet låt**\n{{track}}" + "trackReplayed": "{{icon}} **Spiller låt på nytt**\n{{track}}" }, "filters": { "metadata": { diff --git a/locales/ro/bot.json b/locales/ro/bot.json index 08bdf8e..90b965f 100644 --- a/locales/ro/bot.json +++ b/locales/ro/bot.json @@ -18,7 +18,7 @@ "trackPositionHigherThanHistoryLength_one": "{{icon}} **Ups!**\nMai este doar **o** piesă în istoric. Nu te poți întoarce la poziția **{{backPosition}}**.\n\nPiesele adăugate în istoric pot fi văzute folosind {{historyCommand}}.", "trackPositionHigherThanHistoryLength_few": "{{icon}} **Ups!**\nMai sunt doar **{{count}}** piese în istoric. Nu te poți întoarce la poziția **{{backPosition}}**.\n\nPiesele adăugate în istoric pot fi văzute folosind {{historyCommand}}.", "trackPositionHigherThanHistoryLength_many": "{{icon}} **Ups!**\nMai sunt doar **{{count}}** de piese în istoric. Nu te poți întoarce la poziția **{{backPosition}}**.\n\nPiesele adăugate în istoric pot fi văzute folosind {{historyCommand}}.", - "trackRecovered": "{{icon}} **Piesă recuperată**\n{{track}}" + "trackReplayed": "{{icon}} **Piesă recuperată**\n{{track}}" }, "filters": { "metadata": { diff --git a/src/interactions/commands/player/back.ts b/src/interactions/commands/player/back.ts index 721c81e..79a2cb2 100644 --- a/src/interactions/commands/player/back.ts +++ b/src/interactions/commands/player/back.ts @@ -135,7 +135,7 @@ class BackCommand extends BaseSlashCommandInteraction { new EmbedBuilder() .setAuthor(this.getEmbedUserAuthor(interaction)) .setDescription( - translator('commands.back.trackRecovered', { + translator('commands.back.trackReplayed', { icon: this.embedOptions.icons.back, track: this.getDisplayTrackDurationAndUrl(recoveredTrack, translator) }) diff --git a/src/interactions/components/action-previous-button.ts b/src/interactions/components/action-previous-button.ts index ebad2c3..f2bb339 100644 --- a/src/interactions/components/action-previous-button.ts +++ b/src/interactions/components/action-previous-button.ts @@ -115,7 +115,7 @@ class ActionPreviousButton extends BaseComponentInteraction { const successEmbed = new EmbedBuilder() .setAuthor(this.getEmbedUserAuthor(interaction)) .setDescription( - translator('commands.back.trackRecovered', { + translator('commands.back.trackReplayed', { icon: this.embedOptions.icons.back, track: this.getDisplayTrackDurationAndUrl(recoveredTrack, translator) })