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 5963bc0 commit 11c6c97
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 11c6c97

Please sign in to comment.