Fix building frontend locale cache from the backend.