A few weeks ago, we presented our approach to Full...
# fritz2
j
A few weeks ago, we presented our approach to Full Stack Kotlin at the virtual kotlin user group. In it we demo a Fritz2 based example application which features an in house wrapper to do localization of the UI using Mozilla's fluent-js. As promised during the presentation, we now open sourced our Kotlin adapter for this. It works great with Fritz2 of course. But you may also be able to use it with other reactive web frameworks. The translations are represented as flows that update as you load different fluent files with translations. You can find the project here: https://github.com/formation-res/fluent-kotlin We'd be interested in any feedback. We think this is a great way to do localization with Fritz2. If you missed the presentation, you can find it here:

https://www.youtube.com/watch?v=c6wcpM3EuRg&t=7s

I'll also be presenting this at KKON next week. https://rheinwerk-kkon.de/programm/
❤️ 1
b
I’m wondering why do you use
kotlin.incremental.js.klib=false
in your demo project? Do you do the same in the main project? Have you tried
<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir>=true
? In 1.7.20 it should be much better.
b
Very cool! Are there plans for Kotlin Native?
j
Thanks, for the feedback. I think that setting came out of some issues we had at some point with kotlin-js. Might actually no longer be valid. Using kotlin-js and fritz2 in the past year and a half has been a wild ride of compiler updates, bugs, and workarounds for all sorts of issues.