Format locales file