Code generation for fun and profit

This talk was given at ViennaJS June 2018 by Arpad Borsos.

If you want to translate your react app, you usually end up using react-intl. But doing so has a few problems.

  • react-intl is 42k minified, which is quite a lot.
  • it also parses all your translation strings at start time, which might hurt performance.
  • while react-intl itself has @types, there is no way actually validate the correct usage of your translations.

Arpad shows in his talk how he built intl-codegen to solve these problems.