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

@@ -20,6 +20,7 @@ import me.chayapak1.chomens_bot.data.listener.Listener;
import me.chayapak1.chomens_bot.data.logging.LogType;
import me.chayapak1.chomens_bot.data.player.PlayerEntry;
import me.chayapak1.chomens_bot.util.Ascii85;
import me.chayapak1.chomens_bot.util.I18nUtilities;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.TranslatableComponent;
@@ -186,7 +187,7 @@ public class ChomeNSModIntegrationPlugin implements Listener {
bot.logger.log(
LogType.INFO,
Component.translatable(
"Ignoring suspected replay attack payload with metadata: %s",
I18nUtilities.get("chomens_mod.replay_attack"),
Component.text(metadata.toString()) // PayloadMetadata has toString()
)
);