Elm i18n and Type Safety

We’ve reached the point we needed to translate one of our Elm apps to multiple languages.

View demo

Get the source code

We looked for existing solutions and stumbled upon the elm-i18n library. This
of course made us happy, to see that someone has already solved the problem for us. However, when we looked at the example something felt missing. Type safety.

In Gizra we deal most hours of our working days with PHP, so you can say we are
fearless developers. That is, we hope and believe our code is right, and
worst case we know we will catch our bugs on run time.

But Elm can make us better developers, and give us some safety!

Continue reading…