Update locale only if necessary