Skip to content

Commit

Permalink
add translation for hardcoded text
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Nov 21, 2024
1 parent ab63580 commit e1e160f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void appendHoverText(ItemStack stack, Item.TooltipContext context, List<C

if (ClientUtil.getHoveredSlot() instanceof RouterMenu.InstalledModuleSlot && !ClientUtil.isKeyDown(ClientSetup.keybindModuleInfo)) {
Component key = ClientSetup.keybindConfigure.getKey().getDisplayName().copy().withStyle(ChatFormatting.DARK_AQUA);
Component middleClick = Component.literal("Middle-Click").withStyle(ChatFormatting.DARK_AQUA);
Component middleClick = xlate("modularrouters.itemText.misc.middle_click").withStyle(ChatFormatting.DARK_AQUA);
list.add(xlate("modularrouters.itemText.misc.configureHint", key, middleClick).withStyle(ChatFormatting.GRAY, ChatFormatting.ITALIC));
}
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/modularrouters/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@
"modularrouters.itemText.misc.match_damage" : "Damage",
"modularrouters.itemText.misc.match_components" : "Components",
"modularrouters.itemText.misc.match_item_tags" : "Tags",
"modularrouters.itemText.misc.middle_click" : "Middle-Click",
"modularrouters.itemText.misc.itemList" : "Item List",
"modularrouters.itemText.misc.matchAll" : "All",
"modularrouters.itemText.misc.matchAny" : "Any",
Expand Down

0 comments on commit e1e160f

Please sign in to comment.