feat: 🌐 add i18n for trade amount input placeholder

This commit is contained in:
jh0l 2022-03-06 17:21:58 +11:00 committed by Marcel Märtens
parent 6f22f31376
commit 991cfcaa47
2 changed files with 2 additions and 3 deletions

View File

@ -23,10 +23,10 @@
"hud.trade.tooltip_hint_2": "<Ctrl-Click to Auto-Balance with this.>",
"hud.trade.your_offer": "Your offer",
"hud.trade.their_offer": "Their offer",
"hud.trade.amount_input": "Select an item"
},
vector_map: {
}
)

View File

@ -658,9 +658,8 @@ impl<'a> Trade<'a> {
}
}
} else {
// TODO i18n
// placeholder text when no trade slot is selected
Text::new("Select an item")
Text::new(self.localized_strings.get("hud.trade.amount_input"))
.middle_of(state.ids.amount_bg)
.font_id(self.fonts.cyri.conrod_id)
.font_size(self.fonts.cyri.scale(14))