Format locale file