From 8f5a68927e39302343a008d55ba52c40e724f310 Mon Sep 17 00:00:00 2001 From: Emilxyz <12966472+Emilxyz@users.noreply.github.com> Date: Fri, 29 May 2026 10:37:33 +0200 Subject: [PATCH] fix: load default english translations as fallback --- .../java/com/velocitypowered/proxy/VelocityServer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java index 95f10bcbb0..32adfb6d2e 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -386,6 +386,14 @@ private void registerTranslations() { }); } + try { + translationRegistry.registerAll(Locale.US, path.resolve("messages.properties"), + false); + } catch (IllegalArgumentException ignored) { + // Ignore duplicate translation key errors. We're loading these as fallback, so keys + // might already be present from the lang directory. + } + } catch (IOException e) { logger.error("Encountered an I/O error whilst loading translations", e); }