add locale from js