locale generator and oninit button