Generate locales when constructing.