feat: localization (hopefully i didn't miss anything but surely i will)

it took around 4 hours but i think it's pretty normal for such things like this
This commit is contained in:
ChomeNS
2025-05-06 16:11:09 +07:00
parent 0330cc2f75
commit a915cbbe4b
66 changed files with 1098 additions and 656 deletions

View File

@@ -18,7 +18,6 @@ public class NetMessageCommand extends Command {
public NetMessageCommand () {
super(
"netmsg",
"Broadcasts a message to all of the servers that the bot is connected",
new String[] { "<message>" },
new String[] { "networkmessage", "irc" },
TrustLevel.PUBLIC,
@@ -46,7 +45,7 @@ public class NetMessageCommand extends Command {
Component.empty()
.append(Component.text(originServerAddress).color(NamedTextColor.GRAY))
.append(Component.newline())
.append(Component.text("Click here to copy the server host and port to your clipboard").color(NamedTextColor.GREEN))
.append(Component.translatable("commands.netmsg.hover.copy_server_to_clipboard", NamedTextColor.GREEN))
)
);
@@ -68,9 +67,10 @@ public class NetMessageCommand extends Command {
.clickEvent(ClickEvent.copyToClipboard(rawMessage))
.hoverEvent(
HoverEvent.showText(
Component
.text("Click here to copy the message to your clipboard")
.color(NamedTextColor.GREEN)
Component.translatable(
"commands.generic.copy_to_copy_message",
NamedTextColor.GREEN
)
)
)
).color(NamedTextColor.DARK_GRAY);