Write locale to templates, and pick it up in client js