Hi Elm community, long time lurker here
I recently stumbled over A vision for data interchange in Elm and Protobuf and was inspired by the approach to use compile time to optimize client-server communication. I noticed I was loading reasonably large JSON files containing static texts for internationalization and wondered if I could optimize that. What I’m doing now is converting common I18n Formats (.json and .properties so far) to a flat JSON array as well as replacing placeholders by simple numbers.
There are a couple of existing I18n generators for Elm but as far as I could tell, they did not go as far as my approach in terms of optimization (more on the differences in the README).
I would love if you could give me some feedback/give my package a try.
I want this to be a useful addition to the community, so if you have any feature requests go ahead and I will probably implement them
Currently I’m writing a webpack plugin wrapping this package as well.