From 2352ddfb11ad3c3d310fc3bdc5b14bf71abc113a Mon Sep 17 00:00:00 2001 From: Gurge44 <90392754+Gurge44@users.noreply.github.com> Date: Tue, 3 Feb 2026 19:24:42 +0100 Subject: [PATCH] .json => .jsonc --- Modules/Translator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Translator.cs b/Modules/Translator.cs index dfeb6a237..f3a43b6d5 100644 --- a/Modules/Translator.cs +++ b/Modules/Translator.cs @@ -118,7 +118,7 @@ public static class Translator private static string[] GetJsonFileNames(Assembly assembly, string directoryName) { string[] resourceNames = assembly.GetManifestResourceNames(); - return resourceNames.Where(resourceName => resourceName.StartsWith(directoryName) && resourceName.EndsWith(".json")).ToArray(); + return resourceNames.Where(resourceName => resourceName.StartsWith(directoryName) && resourceName.EndsWith(".jsonc")).ToArray(); } public static string GetString(string s, Dictionary replacementDic = null, bool console = false) @@ -308,4 +308,5 @@ public static class Translator { return OriginalRoleNames.TryGetValue(role, out var d) && d.TryGetValue(GetUserTrueLang(), out var o) ? infoLong.Replace(o, role.ToColoredString(), StringComparison.OrdinalIgnoreCase) : infoLong; } -} \ No newline at end of file + +}