Only generate locales as needed