Adds support for multilingual error messages
Fixes types in errors causing i18next to crash
Merge branch 'compiler'