Column header and message dialog (created by MessageDialogBuilder) are translated out of the box. But first, copy literal.properties
from TiwulFX src folder and paste it to your root src folder. Afterwards, define the translation of all your POJO properties there.
To add more language support, create new literal bundle file having name “literal_” followed by country and language code. For example for Indonesia translation, the bundle file name will beĀ literal_in_ID.properties
. Then callĀ TiwulFXUtil.setLocale(new Locale("in", "ID"))
in your bootstrap class.
To get a translation call TiwulFXUtil.getLiteral(String key)
To get a translation with message parameter, call TiwulFXUtil.getLiteral(String key, Object... param)
Setting Locale in TiwulFXUtil will also affect Date and Number components.