LPS-41995 Use the locale we are going to switch and not the current locale of the page