based on your experience, how would you approach internationalization (i18n) for a full-stack project that needs to display the same contents translated in many different languages?
The project has a Play backend but mostly focused on API without localized content.
The bulk of the localization happens in the scala -> scala.js frontends.
I am familiar with and I quite like gettext, it has a good ecosystem, with tools and editors that can be used by non-coders as well. But I don’t seem to find rock-solid examples or libraries for plugging it effortlessly in Scala; found this https://github.com/xitrum-framework/scaposer and this https://github.com/makkarpov/scalingua but I wanted to have a check before taking a decision. Maybe there are overall better alternatives.
As a rule of thumb, JavaScript libraries can usually be used pretty easily from Scala.js. You might have to create a “facade” – a strongly-typed description of the parts of the API that you are using – if one doesn’t already exist, but that’s not terribly hard (especially if you already know the library well), and then you can just use the stuff you already like