save locale in localstorage to resist page reloads.
updated readme