DO NOT USE THIS SWITCH
The old switch was designed to switch mains voltages between the plug and the transformer primary, your replacement switch is designed to handle 12 volts and (almost certainly) contains a 12v bulb inside to indicate when the contacts are closed.
Please go back to your local retailer and ask for a Double Pole MAINS RATED switch.