Attached locale to html element