add locales to prod build task, throw exception instead of process exit