Migrate to JSON i18n

Authored by siebrand.