I am looking for an ability to describe format templates (eg. used in java.util.Formatter) for dates (like java.text.SimpleDateFormat) and numbers (like java.text.DecimalFormat) that could be transparently used to format values both on the backend (jvm) side and on the browser (js) side.
I hoped that kotlin can provide this feature, but my research stopped at feature requests like https://youtrack.jetbrains.com/issue/KT-21644. So as I see I can not get something ready to use with current kotlin version 1.5.31.
So my question is about some posible format template standarts or may be external libraries which can help me to format number and date values in a single approach on backend and frontend side. What I might need to pay attention to get single format template engine?