remember the current locale and detect runtime changes