Please do note that we currently cannot offer support for custom work which is why we recommend contacting a WPML contractor here: https://wpml.org/contractors/
Regarding the code shared in the ticket you are reviewing, it is indeed created to use a dropdown switcher. See the following documentation on how to edit/create custom switchers