From 1728503bb6c35ac0363214d3167216bfccc586d4 Mon Sep 17 00:00:00 2001 From: Aaron Sandoval <89826250+aarons124@users.noreply.github.com> Date: Wed, 7 Feb 2024 09:56:42 -0700 Subject: [PATCH] fix(lang): Fixed translation string bug - Fixed translation string bug in the move command where it incorrectly displayed {track} instead of {{track}} to properly represent the moved track. chore(deps): Updated dependencies --- locales/en/bot.json | 2 +- locales/es-ES/bot.json | 2 +- locales/no/bot.json | 2 +- locales/ro/bot.json | 2 +- package.json | 180 ++++++++++++++++++++--------------------- 5 files changed, 94 insertions(+), 94 deletions(-) diff --git a/locales/en/bot.json b/locales/en/bot.json index 4e1fe2e..60eea91 100644 --- a/locales/en/bot.json +++ b/locales/en/bot.json @@ -146,7 +146,7 @@ } } }, - "trackMoved": "{{icon}} **Moved track**\n{track}\n\nTrack has been moved from position **`{{fromPosition}}`** to position **`{{toPosition}}`**.", + "trackMoved": "{{icon}} **Moved track**\n{{track}}\n\nTrack has been moved from position **`{{fromPosition}}`** to position **`{{toPosition}}`**.", "trackPositionHigherThanQueueLength_one": "{{icon}} **Oops!**\nYou cannot move the track in position **`{{fromPosition}}`** to position **`{{toPosition}}`**. There is only **`1`** track in the queue.\n\nView tracks added to the queue with {{queueCommand}}.", "trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nYou cannot move the track in position **`{{fromPosition}}`** to position **`{{toPosition}}`**. There are only **`{{count}}`** tracks in the queue.\n\nView tracks added to the queue with {{queueCommand}}." }, diff --git a/locales/es-ES/bot.json b/locales/es-ES/bot.json index 618424e..efd6e8f 100644 --- a/locales/es-ES/bot.json +++ b/locales/es-ES/bot.json @@ -146,7 +146,7 @@ } } }, - "trackMoved": "{{icon}} **Canción movida**\n{track}\n\nLa canción ha sido movida desde la posición **`{{fromPosition}}`** hasta la posición **`{{toPosition}}`**.", + "trackMoved": "{{icon}} **Canción movida**\n{{track}}\n\nLa canción ha sido movida desde la posición **`{{fromPosition}}`** hasta la posición **`{{toPosition}}`**.", "trackPositionHigherThanQueueLength_one": "{{icon}} **Oops!**\nNo puedes mover la canción en la posición **`{{fromPosition}}`** a la posición **`{{toPosition}}`**. Solo hay **`1`** canción en la cola.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}.", "trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nNo puedes mover la canción en la posición **`{{fromPosition}}`** a la posición **`{{toPosition}}`**. Solo hay **`{{count}}`** canciones en la cola.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}." }, diff --git a/locales/no/bot.json b/locales/no/bot.json index 0a234e2..2d8af1d 100644 --- a/locales/no/bot.json +++ b/locales/no/bot.json @@ -146,7 +146,7 @@ } } }, - "trackMoved": "{{icon}} **Flyttet låten**\n{track}\n\nLåten har blitt flyttet fra posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen.", + "trackMoved": "{{icon}} **Flyttet låten**\n{{track}}\n\nLåten har blitt flyttet fra posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen.", "trackPositionHigherThanQueueLength_one": "{{icon}} **Oi sann!**\nDu kan ikke flytte låten i posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen. Det er bare **`1`** låt i køen.\n\nVis låter lagt til i køen med {{queueCommand}}.", "trackPositionHigherThanQueueLength": "{{icon}} **Oi sann!**\nDu kan ikke flytte låten i posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen. Det er bare **`{{count}}`** låter i køen.\n\nVis låter lagt til i køen med {{queueCommand}}." }, diff --git a/locales/ro/bot.json b/locales/ro/bot.json index 0d4e992..cbc0c89 100644 --- a/locales/ro/bot.json +++ b/locales/ro/bot.json @@ -146,7 +146,7 @@ } } }, - "trackMoved": "{{icon}} **Piesă mutată**\n{track}\n\nPiesa a fost mutată din poziția **`{{fromPosition}}`** la poziția **`{{toPosition}}`**.", + "trackMoved": "{{icon}} **Piesă mutată**\n{{track}}\n\nPiesa a fost mutată din poziția **`{{fromPosition}}`** la poziția **`{{toPosition}}`**.", "trackPositionHigherThanQueueLength_one": "{{icon}} **Ups!**\nNu poți muta piesa din poziția **`{{fromPosition}}`** spre poziția **`{{toPosition}}`**. Coada conține doar **o** singură piesă.\n\nVezi piese adăugate în coadă folosind {{queueCommand}}.", "trackPositionHigherThanQueueLength": "{{icon}} **Ups!**\nNu puteți muta melodia în poziția **`{{fromPosition}}`** la poziția **`{{toPosition}}`**. Sunt doar **`{{count}}`** piese în coadă.\n\nVezi melodiile adăugate la coada de redare cu {{queueCommand}}." }, diff --git a/package.json b/package.json index 10ff63b..8df4f25 100644 --- a/package.json +++ b/package.json @@ -1,91 +1,91 @@ -{ - "name": "cadence-discord-bot", - "version": "5.7.0", - "description": "A free Discord music and audio bot.", - "repository": { - "type": "git", - "url": "https://github.com/mariusbegby/cadence-discord-bot" - }, - "bugs": { - "url": "https://github.com/mariusbegby/cadence-discord-bot/issues" - }, - "homepage": "https://github.com/mariusbegby/cadence-discord-bot#readme", - "author": { - "name": "Marius Begby", - "url": "https://github.com/mariusbegby" - }, - "publisher": "mariusbegby", - "license": "MIT", - "main": "dist/index.js", - "jest": { - "preset": "ts-jest", - "testEnvironment": "node", - "testMatch": [ - "**/__tests__/**/*.ts", - "**/?(*.)+(spec|test).ts" - ] - }, - "scripts": { - "start": "node .", - "deploy": "node ./dist/startup/deploySlashCommands.js", - "predev": "npx prisma generate && npx prisma db push", - "dev": "concurrently --names \"TSC,TOC,BOT\" --prefix-colors \"yellow,blue,green\" \"npx tsc -w\" \"nodemon -w locales/en -x npm run toc\" \"nodemon -x npm run start\"", - "eslint": "eslint ./src --fix", - "prebuild": "npm run toc", - "build": "tsc", - "toc": "i18next-resources-for-ts interface -i ./locales/en -o ./locales/resources.d.ts", - "test": "jest", - "test:watch": "jest --watch", - "coverage": "jest --coverage", - "prisma:migrate": "npx prisma migrate dev", - "prisma:generate": "npx prisma generate", - "prisma:studio": "npx prisma studio", - "postinstall": "npx prisma generate" - }, - "nodemonConfig": { - "ignore": [ - "src/**", - "logs/**" - ], - "execMap": {} - }, - "dependencies": { - "@discord-player/extractor": "^4.4.6", - "@discord-player/opus": "^0.1.2", - "@discordjs/rest": "^2.2.0", - "@prisma/client": "^5.9.0", - "config": "^3.3.10", - "discord-player": "^6.6.7", - "discord-voip": "^0.1.3", - "discord.js": "^14.14.1", - "dotenv": "^16.4.1", - "i18next": "^23.8.1", - "i18next-fs-backend": "^2.3.1", - "mediaplex": "^0.0.9", - "node-os-utils": "^1.3.7", - "pino": "^8.17.2", - "youtube-ext": "^1.1.16" - }, - "devDependencies": { - "@types/config": "^3.3.3", - "@types/jest": "^29.5.11", - "@types/node": "^20.11.10", - "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", - "concurrently": "^8.2.2", - "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "i18next-resources-for-ts": "^1.5.0", - "jest": "^29.7.0", - "nodemon": "^3.0.3", - "prettier": "^3.2.4", - "ts-jest": "^29.1.2", - "typescript": "^5.3.3" - }, - "optionalDependencies": { - "pino-loki": "^2.2.1", - "pino-pretty": "^10.3.1" - } +{ + "name": "cadence-discord-bot", + "version": "5.7.0", + "description": "A free Discord music and audio bot.", + "repository": { + "type": "git", + "url": "https://github.com/mariusbegby/cadence-discord-bot" + }, + "bugs": { + "url": "https://github.com/mariusbegby/cadence-discord-bot/issues" + }, + "homepage": "https://github.com/mariusbegby/cadence-discord-bot#readme", + "author": { + "name": "Marius Begby", + "url": "https://github.com/mariusbegby" + }, + "publisher": "mariusbegby", + "license": "MIT", + "main": "dist/index.js", + "jest": { + "preset": "ts-jest", + "testEnvironment": "node", + "testMatch": [ + "**/__tests__/**/*.ts", + "**/?(*.)+(spec|test).ts" + ] + }, + "scripts": { + "start": "node .", + "deploy": "node ./dist/startup/deploySlashCommands.js", + "predev": "npx prisma generate && npx prisma db push", + "dev": "concurrently --names \"TSC,TOC,BOT\" --prefix-colors \"yellow,blue,green\" \"npx tsc -w\" \"nodemon -w locales/en -x npm run toc\" \"nodemon -x npm run start\"", + "eslint": "eslint ./src --fix", + "prebuild": "npm run toc", + "build": "tsc", + "toc": "i18next-resources-for-ts interface -i ./locales/en -o ./locales/resources.d.ts", + "test": "jest", + "test:watch": "jest --watch", + "coverage": "jest --coverage", + "prisma:migrate": "npx prisma migrate dev", + "prisma:generate": "npx prisma generate", + "prisma:studio": "npx prisma studio", + "postinstall": "npx prisma generate" + }, + "nodemonConfig": { + "ignore": [ + "src/**", + "logs/**" + ], + "execMap": {} + }, + "dependencies": { + "@discord-player/extractor": "^4.4.6", + "@discord-player/opus": "^0.1.2", + "@discordjs/rest": "^2.2.0", + "@prisma/client": "^5.9.1", + "config": "^3.3.11", + "discord-player": "^6.6.7", + "discord-voip": "^0.1.3", + "discord.js": "^14.14.1", + "dotenv": "^16.4.1", + "i18next": "^23.8.2", + "i18next-fs-backend": "^2.3.1", + "mediaplex": "^0.0.9", + "node-os-utils": "^1.3.7", + "pino": "^8.18.0", + "youtube-ext": "^1.1.16" + }, + "devDependencies": { + "@types/config": "^3.3.3", + "@types/jest": "^29.5.12", + "@types/node": "^20.11.16", + "@types/node-os-utils": "^1.3.4", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", + "concurrently": "^8.2.2", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "i18next-resources-for-ts": "^1.5.0", + "jest": "^29.7.0", + "nodemon": "^3.0.3", + "prettier": "^3.2.5", + "ts-jest": "^29.1.2", + "typescript": "^5.3.3" + }, + "optionalDependencies": { + "pino-loki": "^2.2.1", + "pino-pretty": "^10.3.1" + } } \ No newline at end of file