fixed change of language option to locale to align with moment.js library