Skip to content

Commit

Permalink
Fix credits role translation keys not being lowercased
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Apr 23, 2024
1 parent 2029188 commit a7c736a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public void confirmResult(boolean result, int id) {
private Text creditsRoleText(String roleName) {
// Replace spaces and dashes in role names with underscores if they exist
// Notably Quilted Fabric API does this with FabricMC as "Upstream Owner"
String translationKey = roleName.replaceAll("[\\s-]", "_");
String translationKey = roleName.replaceAll("[\\s-]", "_").toLowerCase();

return new TranslatableText("modmenu.credits.role." + translationKey).append(new LiteralText(":"));
}
Expand Down

0 comments on commit a7c736a

Please sign in to comment.