Update to lang switch js - thanks Richard