Fix locale generation