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 ea7289c commit 9baf603
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ public void confirmResult(boolean result, int id) {
private String 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 I18n.translate("modmenu.credits.role." + translationKey) + ":";
}
Expand Down

0 comments on commit 9baf603

Please sign in to comment.