Skip to content

Commit

Permalink
Fix credits role translation keys not being lowercased (#713)
Browse files Browse the repository at this point in the history
- Fixed credits role translation keys not being lowercased
  • Loading branch information
LostLuma authored Jun 15, 2024
1 parent 22e42d3 commit 356583d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public void renderScrollBar(BufferBuilder bufferBuilder, Tessellator tessellator
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"
var translationKey = roleName.replaceAll("[\s-]", "_");
var translationKey = roleName.replaceAll("[\s-]", "_").toLowerCase();

// Add an s to the default untranslated string if it ends in r since this
// Fixes common role names people use in English (e.g. Author -> Authors)
Expand Down

0 comments on commit 356583d

Please sign in to comment.