i18n: replace hardcoded strings with locale keys across all commands

- Add locale keys for gateway/MessageHandler permission error messages
- Add locale support to settings command (prettifySettingLabel now accepts t/guildId)
- Replace all hardcoded strings in player, search, seek, trackopt, vote, autoplay, debug, lastfm commands with this.t() calls
- Add new locale keys: command suggestions, vote descriptions, debug pagination, lastfm auth/link/profile/whoknows/leaderboard/playlists/artists strings
- Fix typos in en.json: broken backtick in alreadyLinked, extra $ in unlovedTrack artist template
- Add new locale key for command suggestion ("Did you mean...?")
- Remove "React to refresh" suffix from controls expired footer (now just uses locale key)
This commit is contained in:
NoLogicAlan committed 2026-05-25 20:47:58 +03:00
1 parent b581722c46
commit eeb27de9bb
19 files changed
+1476 -5862

No files matched your search

+144 -5
View File
@@ -14,7 +14,8 @@
},
"cmdHandler": {
"command": {
"invalid": "Unknown command {{command}}!"
"invalid": "Unknown command {{command}}!",
"suggestion": "Did you mean {{command}}? (Type {{acceptCommand}} to run it)"
},
"help": {
"pageStructure": "Available Commands (page $currPage/$maxPage): \n\n$content\n\nRun `$prefix$helpCmd <command>` to learn more about it. You can also include subcommands.\nFor example: `$prefix$helpCmd settings get`\n\nTip: Use the arrows beneath this message to turn pages, or specify the required page by using `$prefix$helpCmd <page number>`",
@@ -75,6 +76,7 @@
"test": "Shows how many people are in each voice channel.",
"thumbnail": "Request the thumbnail of the currently playing song.",
"volume": "Get or change the current volume.",
"vote": "View voting info or check voters for your server/bot on FluxerList",
"volumedefault": "View or set the server default volume. (Requires Manage Server to set)",
"seek": "Seek to a specific position in the currently playing track.",
"move": "Move a track from one position to another in the queue.",
@@ -143,6 +145,10 @@
"volume": {
"volume": "The new volume in percentages (e.g. `30` or `100`). If you go above 100% there might be quality loss."
},
"vote": {
"action": "The action to perform: info, check, voters",
"type": "Resource type: server or bot"
},
"volumedefault": {
"volume": "New volume in % (0–200) to save as server default. Leave empty to view current."
},
@@ -221,7 +227,10 @@
"cleared": "🗑️ Queue cleared."
},
"debug": {
"voiceTitle": "🔧 Voice Debug"
"voiceTitle": "🔧 Voice Debug",
"summary": "📊 **Summary**",
"pageLabel": "Page {{page}}/{{total}}",
"navigateHint": "Use ⬅️➡️ to navigate"
},
"eval": {
"resultTitle": "Eval Result",
@@ -260,6 +269,9 @@
"playerNotFound": "❌ Player not found.",
"playerNotInit": "❌ Player not initialized."
},
"gateway": {
"missingPermsFallback": "⚠️ I'm missing permissions I need to work properly! Missing: **{{perms}}**. Please ask a server administrator to grant these permissions in Server Settings → Roles."
},
"invite": {
"title": "Invite Remix",
"description": "Add Remix to your server directly from [FluxerList](<https://fluxerlist.com/bots/remix>).\n\nJoin our community at [fluxer.gg/remix](https://fluxer.gg/remix) for support, updates, and direct feedback."
@@ -294,12 +306,13 @@
"notConfigured": "❌ Last.fm integration is not configured on this bot. Ask the bot owner to add a Last.fm API key to the config.",
"notLinked": "❌ You don't have a Last.fm account linked. Use `{{prefix}}lastfm link` to get started.",
"linked": "✅ Last.fm account **[{{username}}](https://last.fm/user/{{username}})** linked! Scrobbling is enabled by default.",
"alreadyLinked": "✅ You already have **{{username}}** linked! Use `{{prefix}}lastfm unlink` to disconnect, or `{{prefix}lastfm scrobble` to toggle scrobbling.",
"alreadyLinked": "✅ You already have **{{username}}** linked! Use `{{prefix}}lastfm unlink` to disconnect, or `{{prefix}}lastfm scrobble` to toggle scrobbling.",
"unlinked": "✅ Last.fm account **{{username}}** has been unlinked.",
"scrobbleEnabled": "✅ Scrobbling **enabled** — songs you listen to will be scrobbled to **{{username}}**.",
"scrobbleDisabled": "⏸️ Scrobbling **disabled** — songs won't be scrobbled. Your account is still linked.",
"authDM": "📧 Check your DMs for the Last.fm authorization link! After approving, run `{{prefix}}lastfm confirm <token>` here.",
"authDMFailed": "⚠️ I couldn't DM you. [Click here to authorize on Last.fm]({{url}}), then run `{{prefix}}lastfm confirm <token>`.",
"authLinkTitle": "🎵 Link your Last.fm account",
"confirmUsage": "❌ Usage: `{{prefix}}lastfm confirm <token>` — provide the token from the auth DM.",
"confirmFailed": "❌ Failed to get session: {{error}}\nMake sure you approved the token on Last.fm first.",
"tokenFailed": "❌ Failed to get auth token: {{error}}",
@@ -318,11 +331,73 @@
"noArtists": "🎤 No top artists found for **{{username}}**.",
"artistsTitle": "🎤 Top Artists — {{username}}",
"lovedTrack": "❤️ Loved **{{name}}** by **{{artist}}** on Last.fm!",
"unlovedTrack": "💔 Unloved **{{name}}** by **${{artist}}** on Last.fm.",
"unlovedTrack": "💔 Unloved **{{name}}** by **{{artist}}** on Last.fm.",
"loveFailed": "❌ Failed to love track: {{error}}",
"unloveFailed": "❌ Failed to unlove track: {{error}}",
"nothingPlayingLove": "❌ Nothing is playing right now. Play a song first to love it!",
"fetchFailed": "❌ Failed to fetch data from Last.fm: {{error}}"
"fetchFailed": "❌ Failed to fetch data from Last.fm: {{error}}",
"authLinkBody": "Click the link below to authorize Remix on Last.fm:\n\n**[Authorize on Last.fm]({{url}})**\n\nAfter you click \"Yes, allow access\", come back and run:\n`{{prefix}}lastfm confirm {{token}}`\n\n_This link expires in 60 minutes._",
"npTrackInfo": "**{{name}}** by **{{artist}}**\n[Open on Last.fm]({{url}})",
"npFooter": "Last.fm: {{username}}",
"profileScrobbleStatus": "🔄 Scrobbling: {{status}}",
"profileScrobbleEnabled": "✅ Enabled",
"profileScrobbleDisabled": "⏸️ Disabled",
"profileScrobbleFooter": "Use {{prefix}}lastfm scrobble to toggle scrobbling",
"noPlaylists": "📋 No playlists found for **{{username}}**.",
"playlistsTitle": "📋 Playlists — {{username}}",
"playlistsFooter": "💡 Use {{prefix}}lastfm play playlist <number> to play one!",
"nothingPlayingUnlove": "❌ Nothing is playing right now. Play a song first to unlove it!",
"nothingPlayingNoArtist": "❌ Nothing is playing right now and no artist specified. Play a song or provide an artist name!",
"whoknowsChecking": "🔍 Checking who listens to **{{artist}}** in this server...",
"whoknowsNobody": "👤 Nobody in this server has listened to **{{artist}}** on Last.fm.",
"whoknowsTitle": "👤 Who knows {{artist}}?",
"whoknowsFooter": "{{count}} listener{{plural}} · {{totalPlays}} total plays",
"leaderboardEmpty": "🎵 No scrobbles recorded yet. Link your Last.fm account with `{{prefix}}lastfm link` and start listening!",
"leaderboardControlsExpired": "Controls expired",
"leaderboardPageFooter": "Page {{current}}/{{total}} • Use ◀️▶️ to navigate",
"artistsFooter": "💡 Use {{prefix}}lastfm play top to play your top tracks!",
"noArtistSpecified": "❌ No artist specified. Play a song or provide an artist name via the token option.",
"artistNotFound": "❌ Artist **{{artist}}** not found on Last.fm.",
"noAlbumSpecified": "❌ No album specified. Play a song or provide an album name (e.g. `artist - album`) via the token option.",
"albumNotFound": "❌ Album **{{album}}** not found on Last.fm.",
"noTrackSpecified": "❌ No track specified. Play a song or provide a track name (e.g. `artist - track`) via the token option.",
"trackNotFound": "❌ Track **{{track}}** by **{{artist}}** not found on Last.fm.",
"noTopAlbums": "💿 No top albums found for **{{username}}**.",
"topAlbumsTitle": "💿 Top Albums{{period}} — {{username}}",
"topAlbumsFooter": "💡 Use {{prefix}}lastfm play albums to play your top albums!",
"noTopTags": "🏷️ No top tags found for **{{username}}**.",
"topTagsTitle": "🏷️ Top Tags — {{username}}",
"topTagsFooter": "💡 Use {{prefix}}lastfm tag <name> to view info about a tag!",
"tagProvideName": "❌ Provide a tag name via the token option. Example: `{{prefix}}lastfm tag rock`",
"tagNotFound": "❌ Tag **{{tag}}** not found on Last.fm.",
"compareSpecifyUser": "❌ Specify another user to compare with. Example: `{{prefix}}lastfm compare -user @user`",
"compareUserNotLinked": "❌ That user doesn't have a Last.fm account linked.",
"compareFailed": "❌ Could not compare profiles. Make sure both users are linked.",
"compareTitle": "🤝 Taste Comparison",
"coverNothingPlaying": "❌ Nothing is playing right now. Play a song to get its album cover!",
"coverNotFound": "🖼️ No album cover found for **{{track}}** by **{{artist}}**.",
"coverTitle": "🖼️ {{album}}",
"coverFooter": "🎵 {{track}} by {{artist}}",
"refreshFailed": "❌ Could not access the server.",
"refreshSuccess": "✅ Member list refreshed! Found **{{count}}** members in this server.",
"affinityNeedUsers": "👥 Need at least 2 linked users in this server to check affinity.",
"affinityChecking": "🔍 Checking music affinity among server members...",
"affinityNoCommon": "👥 No common artists found between any server members.",
"affinityTitle": "👥 Music Affinity",
"affinityFooter": "{{count}} members checked",
"crownsChecking": "👑 Checking your artist crowns...",
"crownsNone": "👑 You don't hold any artist crowns in this server. Keep listening!",
"crownsTitle": "👑 Artist Crowns — {{username}}",
"crownsFooter": "{{count}} crown{{plural}} held",
"whoknowsTrackChecking": "🔍 Checking who knows **{{track}}** by **{{artist}}** in this server...",
"whoknowsTrackNobody": "👤 Nobody in this server has listened to **{{track}}** by **{{artist}}** on Last.fm.",
"whoknowsTrackTitle": "👤 Who knows {{track}}?",
"whoknowsTrackFooter": "{{count}} listener{{plural}} · {{totalPlays}} total plays · by {{artist}}",
"whoknowsAlbumChecking": "🔍 Checking who knows **{{album}}**{{artistClause}} in this server...",
"whoknowsAlbumNobody": "👤 Nobody in this server has listened to **{{album}}** on Last.fm.",
"whoknowsAlbumTitle": "👤 Who knows {{album}}?",
"noArtistTags": "🏷️ No tags found for artist **{{artist}}**.",
"artistTagsTitle": "🏷️ Top Tags for {{artist}}"
},
"list": {
"empty": "📭 The queue is empty. Use `{{prefix}}play` to add songs!",
@@ -358,6 +433,14 @@
"controlsExpired": "⌛ Controls expired • NodeLink • {{lines}} lines",
"sessionClosed": "Session closed • NodeLink • {{lines}} lines"
},
"messages": {
"missingCriticalPermsTitle": "Missing Permissions — Bot Cannot Work Properly",
"missingCriticalPermsDesc": "The bot is missing **critical permissions** it needs to function. Please ask a server administrator to grant them.",
"missingOptionalPermsTitle": "Missing Optional Permissions",
"missingOptionalPermsDesc": "Some features may not work without these permissions, but the bot can still play music.",
"permFooter": "Re-invite the bot with correct permissions using the invite link, or edit the bot's role in Server Settings → Roles.",
"needPermsFallback": "I need the following permissions: **{{perms}}**. Please ask a server admin to grant them."
},
"np": {
"loading": "⏳ Loading...",
"nothingPlaying": "There's nothing playing at the moment.",
@@ -427,6 +510,8 @@
"alreadyPlaying": "▶️ Already playing",
"startingPlayback": "▶️ Starting playback",
"previousNotImplemented": "⏮️ Previous track (not implemented)",
"previousNotAvailable": "⏮️ Previous track is not available yet.",
"errorGeneric": "⚠️ Error: {{error}}",
"openingFilterPicker": "🎛️ Opening filter picker — check the filter menu above or use the `filter` command.",
"filterError": "⚠️ Filter error: {{error}}",
"fetchingLyrics": "📜 Fetching lyrics...",
@@ -510,6 +595,34 @@
"serverTitle": "⚙️ Server Settings",
"serverHeader": "Server: **{{name}}**",
"shortcutsHint": "Shortcuts: `{{prefix}}247`, `{{prefix}}prefix`\nUse `{{prefix}}settings help <setting>` to learn about any setting.",
"enabled": "✅ enabled",
"disabled": "❌ disabled",
"label247": "24/7 mode",
"labelPrefix": "Prefix",
"labelSongAnnouncements": "Song announcements",
"labelPfp": "Bot avatar style",
"labelLocale": "Locale",
"labelVolume": "Default volume",
"labelAnnouncementChannel": "Announcement channel",
"labelRestrictVolume": "Restrict volume",
"labelAutojoinChannel": "Autojoin channel",
"noDescription": "No description available.",
"validValues": "**Valid values:** {{values}}",
"validRange": "**Valid range:** {{min}}–{{max}}",
"currentValue": "**Current value:**",
"defaultValue": "**Default:**",
"settingTitle": "⚙️ {{setting}}",
"savedChannel": "Saved channel: <#{{channel}}>",
"savedChannels": "Saved channels ({{count}}): {{channels}}",
"statusDisabled": "❌ disabled",
"savedChannelsNone": "Saved channels: none",
"modeAuto": "🔄 Auto",
"modeOn": "✅ On",
"modeOff": "❌ Off",
"channelsLabel": "{{count}} channel",
"channelsLabelPlural": "{{count}} channels",
"thisServer": "this server",
"max247Channels": "You can save up to {{max}} 24/7 voice channels in one server. Use `{{prefix}}247 off` in one of the saved channels first.",
"247Panel": {
"title": "♾️ 24/7 Mode",
"noChannelsSaved": "No voice channels saved.",
@@ -586,6 +699,32 @@
"changed": "🔊 Volume changed to `{{volume}}%` for this session.",
"setPending": "Volume set to `{{volume}}%` — will apply when connected."
},
"vote": {
"notConfigured": "❌ FluxerList integration is not configured on this bot. Ask the bot owner to add a FluxerList API key to the config.",
"noResourceId": "❌ No {{type}} ID configured. Provide it with `{{prefix}}vote check {{type}} <id-or-slug>` or set it in config.json.",
"infoTitle": "FluxerList Vote",
"infoDescription": "Vote for this bot/server on [FluxerList]({{siteUrl}})!\n\nFluxerList is a server and bot listing platform where users can vote to help grow the community.\n\n**Commands:**\n`{{prefix}}vote info` — Show this info & vote link\n`{{prefix}}vote info server` — Show vote link for a server\n`{{prefix}}vote check` — Check who voted (owner-only)\n`{{prefix}}vote voters` — View the voter list (owner-only)",
"voteTitle": "Vote on FluxerList",
"supportDesc": "Support this {{type}} by voting on FluxerList!",
"voteLink": "**[Vote & View Profile]({{url}})**",
"findLink": "Visit [FluxerList]({{siteUrl}}) to find and vote for this {{type}}.",
"helpGrow": "Your votes help this {{type}} grow and reach more users.",
"fetchVotersFailed": "❌ Failed to fetch voters: {{error}}",
"noVotersYet": "No one has voted for this {{type}} yet. Share the vote link to get started!",
"serverVoters": "Server Voters",
"botVoters": "Bot Voters",
"noVotersOnPage": "No voters found on this page.",
"controlsExpired": "Controls expired",
"pageInfo": "Page {{page}}/{{totalPages}} of {{total}} voters • Use ◀️▶️ to navigate",
"voterTotal": "{{total}} voter(s) total",
"defaultCommandsTitle": "**FluxerList Vote Commands:**",
"defaultCommandsList": "`{{prefix}}vote` — Show vote info & link\n`{{prefix}}vote info` — Show voting info & vote link\n`{{prefix}}vote check` — Check who voted (owner-only)\n`{{prefix}}vote voters` — View the voter list (owner-only)",
"optionsTitle": "**Options:**",
"optionsList": "`{{prefix}}vote check server` — Check voters for a server\n`{{prefix}}vote check bot` — Check voters for a bot",
"votedDate": "voted {{date}}",
"unknownUser": "User#{{id}}",
"unknownDate": "Unknown"
},
"volumedefault": {
"title": "🔊 Volume Settings",
"serverDefault": "• Server default: `{{volume}}%`",