Hello, is there a way to support internationalization on desktop-compose for various string constants?
👍 1
a
altavir
06/22/2021, 6:29 AM
I do not think it is relevant to GUI widgets. You can use any Java library for that.
v
Vadim Kapustin
06/22/2021, 6:37 AM
I make class TranslatedString with overloaded toString() and mutable state of translations resource bundle in companion object. Switching this state changes the result of all toString functions and recomposes all widgets that display TranslatedStrings
✅ 1
My TranslatedString actually contains list of items. Each item is either a key to translate or a raw untranslatable string..