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 and Prospector committed Jun 18, 2024
1 parent 57cb509 commit 183a5ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,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 183a5ea

Please sign in to comment.