update locales
add some translations
use locales in javascript