formating
spaces
edit js locale change func