Improve localization for tools (#151)

Co-authored-by: Maya <[email protected]>
This commit is contained in:
Pierre ZhangandMaya authored and GitHub committed 2025-02-15 06:33:02 +00:00
1 parent c1395c1ffe
commit 65ae295b8f
4 files changed
+18 -2

No files matched your search

@@ -355,7 +355,10 @@ public class ToolBuilder {
return StatCollector.translateToLocal("tool." + toolName + "." + matName);
}
return String.format("%s %s", headMat.prefixName(), tool.getLocalizedToolName());
return String.format(
StatCollector.translateToLocal("tool.nameformat"),
headMat.prefixName(),
tool.getLocalizedToolName());
}
// Passthrough for now