I have a tool that is used by holding it in the cursor. I'd like to use its label to provide feedback to the user, but it only supports strings, not LocalisedString. This would be fine for, say, numeric feedback, but I want it to say "no signal" under certain circumstances and I can't do that in a localised manner.
My current workaround is to just have it periodically pop up flying text over the player, which works but it could be much better.
Make ItemWithLabel::label accept LocalisedString
Re: Make ItemWithLabel::label accept LocalisedString
In the meantime, you could use localisation in item labels by using LuaPlayer::request_translation() and storing the translation in the player's global table.
Don't forget, you're here forever.
Re: Make ItemWithLabel::label accept LocalisedString
I'm back to +1 this. I am messing with item labels myself now, and them not supporting localised strings is a huge bummer. I can use flib's translation module to get them, but that is a huge amount of added complexity for such a small thing. I hope for the best! 

Don't forget, you're here forever.