also accept json

This commit is contained in:
Gurge44 committed 2026-02-26 13:36:48 +01:00
1 parent ae7afb57e2
commit 05f28650e2
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,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(".jsonc")).ToArray();
return resourceNames.Where(resourceName => resourceName.StartsWith(directoryName) && (resourceName.EndsWith(".jsonc") || resourceName.EndsWith(".json"))).ToArray();
}
public static string GetString(string s, Dictionary<string, string> replacementDic = null, bool console = false)