Merge pull request #155 from rdbtCVS/fix/keybind-category-translations

Fix keybind category translations
This commit is contained in:
Ludovic Marie
2026-10-14 19:34:10 +02:00
committed by GitHub
+7 -6
View File
@@ -993,12 +993,13 @@ impl OptionsUi {
for (name, category) in mappings {
if category != last_category {
last_category = category;
let label = Text::translate(&format!("key.categories.{category}"), &[])
.with_style(&Style {
bold: Some(true),
underlined: Some(true),
..Style::default()
});
let label =
Text::translate(&format!("key.category.minecraft.{category}"), &[])
.with_style(&Style {
bold: Some(true),
underlined: Some(true),
..Style::default()
});
out.push(Widget {
x: 0.0,
y: y + 7.0,