change locales js to json