Hi,
I need to show in footer current country name, I have markets with multiple countries (for example: USA, China, France) and I’m trying {{ localization.country }} but that returns only the first available country and not the right one (If I choose France from my custom country selector I still see USA in footer).
Could you please help me to find the best way to do that?
Thansk in advance
I understand that you would like to show the current country name in the footer of your website, but the {{ localization.country }} code is not returning the correct country name. I can assist you with this.
To display the correct country name in the footer of your website, you can try the following steps:
- Use a JavaScript function to get the current country name from the custom country selector.
- Store the current country name in a variable.
- Use the stored country name variable to display the current country name in the footer.
Here is an example code snippet that you can use:
Current country: