diff --git a/src/ui/HelpCommand.mjs b/src/ui/HelpCommand.mjs index 0434721..78d8f9c 100644 --- a/src/ui/HelpCommand.mjs +++ b/src/ui/HelpCommand.mjs @@ -1,8 +1,8 @@ /** * @module src/ui/HelpCommand * @description The rich tabbed help command (Home / Music / Utilities / - * Support) rendered through RichPaginator, plus interception of plain-text - * help aliases so both styles coexist. + * Support) rendered through RichPaginator, with full i18n support and + * interception of plain-text help aliases. */ import { RichPaginator } from "./Paginators.mjs"; @@ -15,77 +15,45 @@ const HELP_SESSION_MS = 30 * 1000; /** @type {object[]} Tab definitions for the rich help. */ const HELP_TABS = [ { - emoji: "🏠", - title: "Home", - header: "Home Page", - static: true, + key: "home", + emoji: "🏠", + titleKey: "cmdHandler.help.tabHome", + headerKey: "cmdHandler.help.tabHomeHeader", + static: true, }, { + key: "music", emoji: "🎵", - title: "Music", - header: "Music Commands", + titleKey: "cmdHandler.help.tabMusic", + headerKey: "cmdHandler.help.tabMusicHeader", categories: ["music"], }, { + key: "util", emoji: "🔧", - title: "Utilities", - header: "Utility Commands", + titleKey: "cmdHandler.help.tabUtil", + headerKey: "cmdHandler.help.tabUtilHeader", categories: ["util", "default"], }, { - emoji: "ℹ️", - title: "Support", - header: "Support Info", - static: true, + key: "support", + emoji: "ℹ️", + titleKey: "cmdHandler.help.tabSupport", + headerKey: "cmdHandler.help.tabSupportHeader", + static: true, }, ]; /** - * @private - * @param {string} prefix - * @returns {string} - */ -function _helpHomeContent(prefix) { - return ( - "**Remix** is a high-fidelity 24/7 music bot supporting YouTube, Spotify, SoundCloud, Deezer, and more.\n\n" + - "**✨ Core Highlights**\n" + - "• **48kHz Hi-Fi Audio** — Crystal-clear audio stream pipeline\n" + - "• **30+ Audio Filters** — Bassboost, 8D, Nightcore, Vaporwave, Equalizer\n" + - "• **Dynamic Normalizer** — EBU R128 loudness leveling across music sources\n" + - "• **24/7 Web Radio** — Over 30,000 global live radio stations\n\n" + - "**📂 Command Categories**\n" + - "🏠 • **Home** — Quick bot overview & status\n" + - "🎵 • **Music** — Playback, queue, search, filters (`" + prefix + "play`, `" + prefix + "skip`, `" + prefix + "queue`)\n" + - "🔧 • **Utility** — Settings, 24/7 voice, ping, vote (`" + prefix + "settings`, `" + prefix + "ping`)\n" + - "ℹ️ • **Support** — Community server & assistance\n\n" + - "💡 **Tip:** Click the tab emojis below to switch sections, or use `" + prefix + "help ` for detailed info." - ); -} - -/** - * @private - * @returns {string} - */ -function _helpSupportContent() { - return ( - "Need help, want to report a bug, or suggest new features?\n\n" + - "💬 **[Join Remix Support Server](https://fluxer.gg/remix)**\n\n" + - "**Team & Maintainers:**\n" + - "• **Fantic** — Community Manager\n" + - "• **Shadow** — Lead Developer\n" + - "• **NoLogicAlan** — Lead Developer\n\n" + - "You can also use `%invite` to add Remix to your server." - ); -} - -/** - * @private Build paginated content for a help category tab. + * @private Build paginated content for a help category tab using localized strings. * @param {object} tab * @param {Array} allCmds * @param {string} prefix + * @param {string|null} guildId + * @param {import('../commands/CommandHandler.mjs').CommandHandler} commandHandler * @returns {string[]} */ -function _helpBuildCategoryPages(tab, allCmds, prefix) { +function _helpBuildCategoryPages(tab, allCmds, prefix, guildId, commandHandler) { const cmds = allCmds .filter(cmd => { if (cmd.requirements?.some(r => r.ownerOnly)) return false; @@ -93,19 +61,23 @@ function _helpBuildCategoryPages(tab, allCmds, prefix) { }) .sort((a, b) => a.name.localeCompare(b.name)); - if (cmds.length === 0) return ["_No commands available._"]; + if (cmds.length === 0) { + return [commandHandler.t(guildId, "cmdHandler.help.noCommands")]; + } const pages = []; for (let i = 0; i < cmds.length; i += HELP_CMDS_PER_PAGE) { const slice = cmds.slice(i, i + HELP_CMDS_PER_PAGE); let page = ""; - slice.forEach((cmd, j) => { - const d = (cmd.description || "No description.").split("\n")[0]; + slice.forEach((cmd) => { + const translated = commandHandler.t(guildId, "commands." + cmd.name); + const d = (translated && translated !== "commands." + cmd.name ? translated : (cmd.description || "No description.")).split("\n")[0]; page += `\`${prefix}${cmd.name}\` — ${d}\n`; }); - page += `\nTo learn more about a command, run \`${prefix}help \`!`; - if (cmds.length > HELP_CMDS_PER_PAGE) - page += `\n\n**Tip:** Use ⬅️ ➡️ to scroll between pages.`; + page += commandHandler.t(guildId, "cmdHandler.help.learnMore"); + if (cmds.length > HELP_CMDS_PER_PAGE) { + page += commandHandler.t(guildId, "cmdHandler.help.subpageTip"); + } pages.push(page); } return pages; @@ -144,21 +116,19 @@ export class HelpCommand { const _reply = this._commands.replyHandler.bind(this._commands); this._commands.replyHandler = (message, msg) => { - if (typeof message === "string" && message.toLowerCase().includes("unknown command")) { - const content = msg?.content ?? msg?.message?.content ?? ""; - const guildId = msg?.channel?.channel?.guildId ?? msg?.message?.guildId; - const prefix = this._commands.getPrefix(guildId); - const botId = this._commands.client.user?.id; - const ping = `<@${botId}>`; - const pingBang = `<@!${botId}>`; - let body = null; - if (content.startsWith(prefix)) body = content.slice(prefix.length).trim(); - else if (content.startsWith(pingBang)) body = content.slice(pingBang.length).trim(); - else if (content.startsWith(ping)) body = content.slice(ping.length).trim(); - if (body !== null) { - const first = body.split(/\s+/)[0]?.toLowerCase(); - if (HELP_ALIASES.includes(first)) return; - } + const content = msg?.content ?? msg?.message?.content ?? ""; + const guildId = msg?.channel?.channel?.guildId ?? msg?.message?.guildId; + const prefix = this._commands.getPrefix(guildId); + const botId = this._commands.client.user?.id; + const ping = `<@${botId}>`; + const pingBang = `<@!${botId}>`; + let body = null; + if (content.startsWith(prefix)) body = content.slice(prefix.length).trim(); + else if (content.startsWith(pingBang)) body = content.slice(pingBang.length).trim(); + else if (content.startsWith(ping)) body = content.slice(ping.length).trim(); + if (body !== null) { + const first = body.split(/\s+/)[0]?.toLowerCase(); + if (HELP_ALIASES.includes(first)) return; } return _reply(message, msg); }; @@ -212,6 +182,7 @@ export class HelpCommand { _handle(msg, args, prefix) { const allCmds = this._commands.commands; const query = (args[0] ?? "").trim(); + const guildId = msg.channel?.channel?.guildId ?? msg.message?.guildId; if (query && isNaN(Number(query))) { let currCmd = null; @@ -221,7 +192,6 @@ export class HelpCommand { c.aliases.some(a => a.toLowerCase() === word.toLowerCase()) ); if (!found) { - const guildId = msg.channel?.channel?.guildId ?? msg.message?.guildId; msg.reply(this._commands.t(guildId, "cmdHandler.help.unknownCommand", { command: word, prefix })); return; } @@ -242,14 +212,17 @@ export class HelpCommand { .setStartTab(startTab); for (const tab of HELP_TABS) { + const title = this._commands.t(guildId, tab.titleKey); + const header = this._commands.t(guildId, tab.headerKey); if (tab.static) { - const content = tab.title === "Home" - ? _helpHomeContent(prefix) - : _helpSupportContent(); - paginator.addTab({ emoji: tab.emoji, title: tab.title, header: tab.header, content }); + const contentKey = tab.key === "home" + ? "cmdHandler.help.homeContent" + : "cmdHandler.help.supportContent"; + const content = this._commands.t(guildId, contentKey); + paginator.addTab({ emoji: tab.emoji, title, header, content }); } else { - const pages = _helpBuildCategoryPages(tab, allCmds, prefix); - paginator.addTab({ emoji: tab.emoji, title: tab.title, header: tab.header, pages }); + const pages = _helpBuildCategoryPages(tab, allCmds, prefix, guildId, this._commands); + paginator.addTab({ emoji: tab.emoji, title, header, pages }); } } diff --git a/storage/locales/bot/ar-SA.json b/storage/locales/bot/ar-SA.json index 0599a88..62424ab 100644 --- a/storage/locales/bot/ar-SA.json +++ b/storage/locales/bot/ar-SA.json @@ -35,7 +35,20 @@ "permission": "الصلاحية `{{$permission}}`", "optionCount": "{{$count}} خيار/خيارات", "commandInspectorAuthor": "مساعدة الأمر • {{prefix}}{{name}}", - "commandInspectorFooter": "اكتب {{prefix}}help لعرض القائمة الكاملة • الفئة: {{category}}" + "commandInspectorFooter": "اكتب {{prefix}}help لعرض القائمة الكاملة • الفئة: {{category}}", + "tabHome": "Home", + "tabHomeHeader": "Home Page", + "tabMusic": "Music", + "tabMusicHeader": "Music Commands", + "tabUtil": "Utilities", + "tabUtilHeader": "Utility Commands", + "tabSupport": "Support", + "tabSupportHeader": "Support Info", + "homeContent": "**Remix** is a high-fidelity 24/7 music bot supporting YouTube, Spotify, SoundCloud, Deezer, and more.\n\n**✨ Core Highlights**\n• **48kHz Hi-Fi Audio** — Crystal-clear audio stream pipeline\n• **30+ Audio Filters** — Bassboost, 8D, Nightcore, Vaporwave, Equalizer\n• **Dynamic Normalizer** — EBU R128 loudness leveling across music sources\n• **24/7 Web Radio** — Over 30,000 global live radio stations\n\n**📂 Command Categories**\n🏠 • **Home** — Quick bot overview & status\n🎵 • **Music** — Playback, queue, search, filters ($prefixplay, $prefixskip, $prefixqueue)\n🔧 • **Utility** — Settings, 24/7 voice, ping, vote ($prefixsettings, $prefixping)\nℹ️ • **Support** — Community server & assistance\n\n💡 **Tip:** Click the tab emojis below to switch sections, or use $prefixhelp for detailed info.", + "supportContent": "Need help, want to report a bug, or suggest new features?\n\n💬 **[Join Remix Support Server](https://fluxer.gg/remix)**\n\n**Team & Maintainers:**\n• **Fantic** — Community Manager\n• **Shadow** — Lead Developer\n• **NoLogicAlan** — Lead Developer\n\nYou can also use $prefixinvite to add Remix to your server.", + "noCommands": "_No commands available._", + "learnMore": "\nTo learn more about a command, run $prefixhelp !", + "subpageTip": "\n\n**Tip:** Use ⬅️ ➡️ to scroll between pages." }, "invalidFlag": "علامة غير صالحة `$invalidFlag`. لا تتطابق مع أي خيار لهذا الأمر.\n`$previousCmd $invalidFlag`", "page": { diff --git a/storage/locales/bot/ckb.json b/storage/locales/bot/ckb.json index 9de4a93..6cf2617 100644 --- a/storage/locales/bot/ckb.json +++ b/storage/locales/bot/ckb.json @@ -35,7 +35,20 @@ "permission": "مۆڵەت `{{$permission}}`", "optionCount": "{{$count}} هەڵبژاردن(ەکان)", "commandInspectorAuthor": "یارمەتیی فەرمان • {{prefix}}{{name}}", - "commandInspectorFooter": "بنوسە {{prefix}}help بۆ هەموو فەرمانەکان • پۆل: {{category}}" + "commandInspectorFooter": "بنوسە {{prefix}}help بۆ هەموو فەرمانەکان • پۆل: {{category}}", + "tabHome": "Home", + "tabHomeHeader": "Home Page", + "tabMusic": "Music", + "tabMusicHeader": "Music Commands", + "tabUtil": "Utilities", + "tabUtilHeader": "Utility Commands", + "tabSupport": "Support", + "tabSupportHeader": "Support Info", + "homeContent": "**Remix** is a high-fidelity 24/7 music bot supporting YouTube, Spotify, SoundCloud, Deezer, and more.\n\n**✨ Core Highlights**\n• **48kHz Hi-Fi Audio** — Crystal-clear audio stream pipeline\n• **30+ Audio Filters** — Bassboost, 8D, Nightcore, Vaporwave, Equalizer\n• **Dynamic Normalizer** — EBU R128 loudness leveling across music sources\n• **24/7 Web Radio** — Over 30,000 global live radio stations\n\n**📂 Command Categories**\n🏠 • **Home** — Quick bot overview & status\n🎵 • **Music** — Playback, queue, search, filters ($prefixplay, $prefixskip, $prefixqueue)\n🔧 • **Utility** — Settings, 24/7 voice, ping, vote ($prefixsettings, $prefixping)\nℹ️ • **Support** — Community server & assistance\n\n💡 **Tip:** Click the tab emojis below to switch sections, or use $prefixhelp for detailed info.", + "supportContent": "Need help, want to report a bug, or suggest new features?\n\n💬 **[Join Remix Support Server](https://fluxer.gg/remix)**\n\n**Team & Maintainers:**\n• **Fantic** — Community Manager\n• **Shadow** — Lead Developer\n• **NoLogicAlan** — Lead Developer\n\nYou can also use $prefixinvite to add Remix to your server.", + "noCommands": "_No commands available._", + "learnMore": "\nTo learn more about a command, run $prefixhelp !", + "subpageTip": "\n\n**Tip:** Use ⬅️ ➡️ to scroll between pages." }, "invalidFlag": "ئاڵای نادروست `$invalidFlag`. لەگەڵ هیچ هەڵبژاردنێکی ئەم فەرمانە نایگونجێت.\n`$previousCmd $invalidFlag`", "page": { diff --git a/storage/locales/bot/de-DE.json b/storage/locales/bot/de-DE.json index 442c1bb..24082fd 100644 --- a/storage/locales/bot/de-DE.json +++ b/storage/locales/bot/de-DE.json @@ -35,7 +35,20 @@ "permission": "Berechtigung `{{$permission}}`", "optionCount": "{{$count}} Option(en)", "commandInspectorAuthor": "Befehlshilfe • {{prefix}}{{name}}", - "commandInspectorFooter": "Tippe {{prefix}}help für die komplette Befehlsliste • Kategorie: {{category}}" + "commandInspectorFooter": "Tippe {{prefix}}help für die komplette Befehlsliste • Kategorie: {{category}}", + "tabHome": "Home", + "tabHomeHeader": "Home Page", + "tabMusic": "Music", + "tabMusicHeader": "Music Commands", + "tabUtil": "Utilities", + "tabUtilHeader": "Utility Commands", + "tabSupport": "Support", + "tabSupportHeader": "Support Info", + "homeContent": "**Remix** is a high-fidelity 24/7 music bot supporting YouTube, Spotify, SoundCloud, Deezer, and more.\n\n**✨ Core Highlights**\n• **48kHz Hi-Fi Audio** — Crystal-clear audio stream pipeline\n• **30+ Audio Filters** — Bassboost, 8D, Nightcore, Vaporwave, Equalizer\n• **Dynamic Normalizer** — EBU R128 loudness leveling across music sources\n• **24/7 Web Radio** — Over 30,000 global live radio stations\n\n**📂 Command Categories**\n🏠 • **Home** — Quick bot overview & status\n🎵 • **Music** — Playback, queue, search, filters ($prefixplay, $prefixskip, $prefixqueue)\n🔧 • **Utility** — Settings, 24/7 voice, ping, vote ($prefixsettings, $prefixping)\nℹ️ • **Support** — Community server & assistance\n\n💡 **Tip:** Click the tab emojis below to switch sections, or use $prefixhelp for detailed info.", + "supportContent": "Need help, want to report a bug, or suggest new features?\n\n💬 **[Join Remix Support Server](https://fluxer.gg/remix)**\n\n**Team & Maintainers:**\n• **Fantic** — Community Manager\n• **Shadow** — Lead Developer\n• **NoLogicAlan** — Lead Developer\n\nYou can also use $prefixinvite to add Remix to your server.", + "noCommands": "_No commands available._", + "learnMore": "\nTo learn more about a command, run $prefixhelp !", + "subpageTip": "\n\n**Tip:** Use ⬅️ ➡️ to scroll between pages." }, "invalidFlag": "Ungültige Flag `$invalidFlag`. Sie stimmt mit keiner Option dieses Befehls überein.\n`$previousCmd $invalidFlag`", "page": { diff --git a/storage/locales/bot/en.json b/storage/locales/bot/en.json index b53910e..f2bccc1 100644 --- a/storage/locales/bot/en.json +++ b/storage/locales/bot/en.json @@ -35,7 +35,20 @@ "permission": "Permission `{{$permission}}`", "optionCount": "{{$count}} option(s)", "commandInspectorAuthor": "Command Help • {{prefix}}{{name}}", - "commandInspectorFooter": "Type {{prefix}}help for full command list • Category: {{category}}" + "commandInspectorFooter": "Type {{prefix}}help for full command list • Category: {{category}}", + "tabHome": "Home", + "tabHomeHeader": "Home Page", + "tabMusic": "Music", + "tabMusicHeader": "Music Commands", + "tabUtil": "Utilities", + "tabUtilHeader": "Utility Commands", + "tabSupport": "Support", + "tabSupportHeader": "Support Info", + "homeContent": "**Remix** is a high-fidelity 24/7 music bot supporting YouTube, Spotify, SoundCloud, Deezer, and more.\n\n**✨ Core Highlights**\n• **48kHz Hi-Fi Audio** — Crystal-clear audio stream pipeline\n• **30+ Audio Filters** — Bassboost, 8D, Nightcore, Vaporwave, Equalizer\n• **Dynamic Normalizer** — EBU R128 loudness leveling across music sources\n• **24/7 Web Radio** — Over 30,000 global live radio stations\n\n**📂 Command Categories**\n🏠 • **Home** — Quick bot overview & status\n🎵 • **Music** — Playback, queue, search, filters ($prefixplay, $prefixskip, $prefixqueue)\n🔧 • **Utility** — Settings, 24/7 voice, ping, vote ($prefixsettings, $prefixping)\nℹ️ • **Support** — Community server & assistance\n\n💡 **Tip:** Click the tab emojis below to switch sections, or use $prefixhelp for detailed info.", + "supportContent": "Need help, want to report a bug, or suggest new features?\n\n💬 **[Join Remix Support Server](https://fluxer.gg/remix)**\n\n**Team & Maintainers:**\n• **Fantic** — Community Manager\n• **Shadow** — Lead Developer\n• **NoLogicAlan** — Lead Developer\n\nYou can also use $prefixinvite to add Remix to your server.", + "noCommands": "_No commands available._", + "learnMore": "\nTo learn more about a command, run $prefixhelp !", + "subpageTip": "\n\n**Tip:** Use ⬅️ ➡️ to scroll between pages." }, "invalidFlag": "Invalid flag `$invalidFlag`. It doesn't match any options on this command.\n`$previousCmd $invalidFlag`", "textWrapError": "Malformed string `{{$value}}`: Missing a closing quote character (`{{$quote}}`) after the desired string.", diff --git a/storage/locales/bot/pt-BR.json b/storage/locales/bot/pt-BR.json index f835cbd..0eec2d7 100644 --- a/storage/locales/bot/pt-BR.json +++ b/storage/locales/bot/pt-BR.json @@ -35,7 +35,20 @@ "permission": "Permissão `{{$permission}}`", "optionCount": "{{$count}} opção(ões)", "commandInspectorAuthor": "Ajuda do Comando • {{prefix}}{{name}}", - "commandInspectorFooter": "Digite {{prefix}}help para ver todos os comandos • Categoria: {{category}}" + "commandInspectorFooter": "Digite {{prefix}}help para ver todos os comandos • Categoria: {{category}}", + "tabHome": "Home", + "tabHomeHeader": "Home Page", + "tabMusic": "Music", + "tabMusicHeader": "Music Commands", + "tabUtil": "Utilities", + "tabUtilHeader": "Utility Commands", + "tabSupport": "Support", + "tabSupportHeader": "Support Info", + "homeContent": "**Remix** is a high-fidelity 24/7 music bot supporting YouTube, Spotify, SoundCloud, Deezer, and more.\n\n**✨ Core Highlights**\n• **48kHz Hi-Fi Audio** — Crystal-clear audio stream pipeline\n• **30+ Audio Filters** — Bassboost, 8D, Nightcore, Vaporwave, Equalizer\n• **Dynamic Normalizer** — EBU R128 loudness leveling across music sources\n• **24/7 Web Radio** — Over 30,000 global live radio stations\n\n**📂 Command Categories**\n🏠 • **Home** — Quick bot overview & status\n🎵 • **Music** — Playback, queue, search, filters ($prefixplay, $prefixskip, $prefixqueue)\n🔧 • **Utility** — Settings, 24/7 voice, ping, vote ($prefixsettings, $prefixping)\nℹ️ • **Support** — Community server & assistance\n\n💡 **Tip:** Click the tab emojis below to switch sections, or use $prefixhelp for detailed info.", + "supportContent": "Need help, want to report a bug, or suggest new features?\n\n💬 **[Join Remix Support Server](https://fluxer.gg/remix)**\n\n**Team & Maintainers:**\n• **Fantic** — Community Manager\n• **Shadow** — Lead Developer\n• **NoLogicAlan** — Lead Developer\n\nYou can also use $prefixinvite to add Remix to your server.", + "noCommands": "_No commands available._", + "learnMore": "\nTo learn more about a command, run $prefixhelp !", + "subpageTip": "\n\n**Tip:** Use ⬅️ ➡️ to scroll between pages." }, "invalidFlag": "Flag inválida `$invalidFlag`. Não corresponde a nenhuma opção deste comando.\n`$previousCmd $invalidFlag`", "page": { diff --git a/storage/locales/bot/tr.json b/storage/locales/bot/tr.json index 92fa274..3ed228d 100644 --- a/storage/locales/bot/tr.json +++ b/storage/locales/bot/tr.json @@ -35,7 +35,20 @@ "permission": "İzin `{{$permission}}`", "optionCount": "{{$count}} seçenek", "commandInspectorAuthor": "Komut Yardımı • {{prefix}}{{name}}", - "commandInspectorFooter": "Tüm komutlar için {{prefix}}help yazın • Kategori: {{category}}" + "commandInspectorFooter": "Tüm komutlar için {{prefix}}help yazın • Kategori: {{category}}", + "tabHome": "Home", + "tabHomeHeader": "Home Page", + "tabMusic": "Music", + "tabMusicHeader": "Music Commands", + "tabUtil": "Utilities", + "tabUtilHeader": "Utility Commands", + "tabSupport": "Support", + "tabSupportHeader": "Support Info", + "homeContent": "**Remix** is a high-fidelity 24/7 music bot supporting YouTube, Spotify, SoundCloud, Deezer, and more.\n\n**✨ Core Highlights**\n• **48kHz Hi-Fi Audio** — Crystal-clear audio stream pipeline\n• **30+ Audio Filters** — Bassboost, 8D, Nightcore, Vaporwave, Equalizer\n• **Dynamic Normalizer** — EBU R128 loudness leveling across music sources\n• **24/7 Web Radio** — Over 30,000 global live radio stations\n\n**📂 Command Categories**\n🏠 • **Home** — Quick bot overview & status\n🎵 • **Music** — Playback, queue, search, filters ($prefixplay, $prefixskip, $prefixqueue)\n🔧 • **Utility** — Settings, 24/7 voice, ping, vote ($prefixsettings, $prefixping)\nℹ️ • **Support** — Community server & assistance\n\n💡 **Tip:** Click the tab emojis below to switch sections, or use $prefixhelp for detailed info.", + "supportContent": "Need help, want to report a bug, or suggest new features?\n\n💬 **[Join Remix Support Server](https://fluxer.gg/remix)**\n\n**Team & Maintainers:**\n• **Fantic** — Community Manager\n• **Shadow** — Lead Developer\n• **NoLogicAlan** — Lead Developer\n\nYou can also use $prefixinvite to add Remix to your server.", + "noCommands": "_No commands available._", + "learnMore": "\nTo learn more about a command, run $prefixhelp !", + "subpageTip": "\n\n**Tip:** Use ⬅️ ➡️ to scroll between pages." }, "invalidFlag": "Geçersiz bayrak `$invalidFlag`. Bu komuttaki hiçbir seçenekle eşleşmiyor.\n`$previousCmd $invalidFlag`", "textWrapError": "Hatalı biçimlendirilmiş dize `{{$value}}`: İstenen dizeden sonra kapatma tırnak işareti (`{{$quote}}`) eksik.", diff --git a/storage/locales/bot/zh-CN.json b/storage/locales/bot/zh-CN.json index 6b5dbc4..37a22c5 100644 --- a/storage/locales/bot/zh-CN.json +++ b/storage/locales/bot/zh-CN.json @@ -35,7 +35,20 @@ "permission": "权限 `{{$permission}}`", "optionCount": "{{$count}} 个选项", "commandInspectorAuthor": "命令帮助 • {{prefix}}{{name}}", - "commandInspectorFooter": "输入 {{prefix}}help 查看完整命令列表 • 分类:{{category}}" + "commandInspectorFooter": "输入 {{prefix}}help 查看完整命令列表 • 分类:{{category}}", + "tabHome": "首页", + "tabHomeHeader": "首页", + "tabMusic": "音乐", + "tabMusicHeader": "音乐命令", + "tabUtil": "实用工具", + "tabUtilHeader": "实用工具命令", + "tabSupport": "官方支持", + "tabSupportHeader": "支持信息", + "homeContent": "**Remix** 是一个高保真 24/7 全天候音乐机器人,支持 YouTube、Spotify、SoundCloud、Deezer 等平台。\n\n**✨ 核心特色**\n• **48kHz 高保真音频** — 清澈纯净的音频流处理管线\n• **30+ 款音频滤镜** — 低音增强、8D 环绕、夜核、蒸汽波、均衡器\n• **动态音量均衡** — EBU R128 标准化跨平台音源响度\n• **24/7 网络电台** — 超过 30,000 个全球实时广播电台\n\n**📂 命令分类**\n🏠 • **首页** — 机器人快速概览与状态\n🎵 • **音乐** — 播放、队列、搜索、滤镜($prefixplay、$prefixskip、$prefixqueue)\n🔧 • **实用工具** — 设置、24/7 语音、延迟、投票($prefixsettings、$prefixping)\nℹ️ • **支持** — 社区服务器与帮助\n\n💡 **提示:** 点击下方的表情标签切换不同页面,或使用 $prefixhelp <命令> 查看具体命令的详细说明。", + "supportContent": "需要帮助、想报告 Bug 或提出新功能建议?\n\n💬 **[加入 Remix 官方支持服务器](https://fluxer.gg/remix)**\n\n**团队与维护者:**\n• **Fantic** — 社区经理\n• **Shadow** — 首席开发者\n• **NoLogicAlan** — 首席开发者\n\n你也可以使用 $prefixinvite 将 Remix 邀请到你的服务器。", + "noCommands": "_暂无可用命令。_", + "learnMore": "\n若要了解具体命令详情,请运行 $prefixhelp <命令名称>!", + "subpageTip": "\n\n**提示:** 使用 ⬅️ ➡️ 在不同页面间翻页。" }, "invalidFlag": "无效的标志 `$invalidFlag`。与该命令上的任何选项均不匹配。\n`$previousCmd $invalidFlag`", "textWrapError": "字符串格式错误 `{{$value}}`:缺少闭合引号(`{{$quote}}`)。", diff --git a/storage/locales/bot/zh-TW.json b/storage/locales/bot/zh-TW.json index 9d28acd..3547946 100644 --- a/storage/locales/bot/zh-TW.json +++ b/storage/locales/bot/zh-TW.json @@ -35,7 +35,20 @@ "permission": "權限 `{{$permission}}`", "optionCount": "{{$count}} 個選項", "commandInspectorAuthor": "指令說明 • {{prefix}}{{name}}", - "commandInspectorFooter": "輸入 {{prefix}}help 查看完整指令清單 • 類別:{{category}}" + "commandInspectorFooter": "輸入 {{prefix}}help 查看完整指令清單 • 類別:{{category}}", + "tabHome": "首頁", + "tabHomeHeader": "首頁", + "tabMusic": "音樂", + "tabMusicHeader": "音樂指令", + "tabUtil": "實用工具", + "tabUtilHeader": "實用工具指令", + "tabSupport": "官方支援", + "tabSupportHeader": "支援資訊", + "homeContent": "**Remix** 是一個高保真 24/7 全天候音樂機器人,支援 YouTube、Spotify、SoundCloud、Deezer 等平台。\n\n**✨ 核心特色**\n• **48kHz 高保真音訊** — 清澈純淨的音訊串流處理管道\n• **30+ 款音訊濾鏡** — 重低音增強、8D 環繞、夜核、蒸氣波、等化器\n• **動態音量標準化** — EBU R128 平衡跨平台音訊來源響度\n• **24/7 網路電台** — 超過 30,000 個全球即時廣播電台\n\n**📂 指令類別**\n🏠 • **首頁** — 機器人快速概覽與狀態\n🎵 • **音樂** — 播放、佇列、搜尋、濾鏡($prefixplay、$prefixskip、$prefixqueue)\n🔧 • **實用工具** — 設定、24/7 語音、延遲、投票($prefixsettings、$prefixping)\nℹ️ • **支援** — 社群伺服器與協助\n\n💡 **提示:** 點擊下方的表情符號標籤切換不同頁面,或使用 $prefixhelp <指令> 查看具體指令的詳細說明。", + "supportContent": "需要協助、想回報問題或提出新功能建議?\n\n💬 **[加入 Remix 官方支援伺服器](https://fluxer.gg/remix)**\n\n**團隊與維護者:**\n• **Fantic** — 社群經理\n• **Shadow** — 首席開發者\n• **NoLogicAlan** — 首席開發者\n\n你也可以使用 $prefixinvite 將 Remix 邀請至你的伺服器。", + "noCommands": "_暫無可用指令。_", + "learnMore": "\n若要瞭解特定指令詳情,請執行 $prefixhelp <指令名稱>!", + "subpageTip": "\n\n**提示:** 使用 ⬅️ ➡️ 在不同頁面間翻頁。" }, "invalidFlag": "無效的旗標 `$invalidFlag`。與該指令上的任何選項皆不相符。\n`$previousCmd $invalidFlag`", "textWrapError": "字串格式錯誤 `{{$value}}`:缺少閉合引號(`{{$quote}}`)。",