I’m not sure what you mean. Could you provide a bit more context as to what you’re trying to do?
If you want to obtain a TextColor
instance, use the TextColors
class and for Text.Placeholder
there’s the static method Texts.placeholder(...)
I’m using the ResourceBundleTranslation
to read text from a ResourceBundle
and I’m asking how to get Placeholders
or TextColors
from them?
You don’t, a Translation
object represents a key to substitute values into.
Use Texts.builder(Translation, Object...)
to build a text object which contains colors etc