Global expansion, localizing content, and selling in multiple currencies and languages
hello,
I am trying to set up english langauge as default on my european markets while on my primary market denmark keep Danish as default.
However, when testing it with VPN it by default shows Danish to all customers regardless of their location in Europe. Anyone knows what i need to adjust?
On Europe market I use subfolders (domain suffix)
The url is. www.cungx.dk
Hi @ddcu
I see what you’re trying to do—keeping Danish as the default for Denmark while ensuring English is the default for your other European markets. Right now, it sounds like your store is automatically showing Danish to all visitors, no matter where they’re browsing from. This is likely happening because of how Shopify handles language detection and redirection. Let’s get that fixed!
Since you’re using subfolders (domain suffixes) for your European markets, Shopify should be able to serve different languages based on the user’s region. However, by default, Shopify often prioritizes the primary store language or the user’s browser settings instead of geolocation alone.
Since you’re using subfolders, Shopify allows users to access the right language directly through URLs. Try these:
If VPN tests always show Danish, try opening www.cungx.dk/en directly to see if it sticks. If not, something might be forcing Danish as the default.
If Shopify’s built-in settings don’t work, you can add a simple script in your theme.liquid file to force language selection based on geolocation. Shopify provides a window.navigator.language method that detects the user’s browser language and redirects accordingly.
Here’s an example of how you can apply it:
<script>
document.addEventListener("DOMContentLoaded", function () {
var userLang = navigator.language || navigator.userLanguage; // Detects browser language
if (userLang.startsWith("da")) {
window.location.href = "https://www.cungx.dk/da"; // Redirects Danish users
} else {
window.location.href = "https://www.cungx.dk/en"; // Redirects everyone else to English
}
});
</script>
🔹 Where to add it?
💡 Note: This works based on the browser language and not actual geolocation. If you need an advanced solution based on IP location, you might need a third-party app like Geolocation by Shopify or LangShop.
Let me know if you need more help. Thanks!
Daisy.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025