For some reason the language and currency switcher in the header of my website is not displaying on the front end. I am using Magento version 22.214.171.124
I am not sure why this has happened? Is there a setting I need to enable?
It will be good solution for you to install plugin that automatically switches language and currency depending on visitors location. You can chose our GeoIP Store and Currency Switcher. If you get our module and your problem will not be solved we will do this customization for you
Alternatively, you can try this extension https://www.magentocommerce.com/magento-connect/geoip-redirect-by-amasty.html
It will let you show relevant language and currency to your visitors according to their GeoIP location.
Is there a way to enable this feature through a code in backend?
Thanks for the earlier solution.
You can try this language and currency switcher by FME which apart from switching the language & currency of the store based upon visitor's location, offers some other amazing features such as manual switching, IP exceptions etc.
I'd recommend you to use the Magento 2 GeoIP Switcher extension to improve the store switching feature and worldwide user experience.