I have been trying to setup international domains into my store but I have been facing some issues with the language switcher.
My store's domain is https://torresnovas1845.com
I also own the https://torresnovas1845.pt, and I have it targeting the Portuguese market, with Portuguese as default language but also with English and Spanish available.
When I go to https://torresnovas1845.pt I see the site in Portuguese, but if I change the language to English or Spanish, and then back to Portuguese, I get a 404 error, since it tries to load https://torresnovas1845.pt/pt-PT/, which is equivalent to to https://torresnovas1845.com/pt-pt/pt-pt and does not exist.
How can I fix this? Is there a workaround?
Thank you very much!
i just checked your website. very nice design. i wanted to ask how did you put language selection at the top of website? did you install an app or something, and what is translated languages in settings option: setting>store languages>translated languages>unpublished languages. What is this option? Does text translate automatically?
This seems to be an issue with the language selector that the Translate my store app is rendering in your theme.
I would raise this issue with them directly, but additionally it looks like you have made your primary domain, http://torresnovas1845.com, setup to have English, Spanish, and Portuguese options.
If you want to use https://torresnovas1845.pt to target Portugal, then remove Portuguese as a language option on your primary domain, go into the options to Manage your .pt domain and set it up to target Portugal with Portuguese as the default language on that domain.
Let us know how you get on.
Thank you very much for your answer.
The issue I reported occurs with the normal shopify languages selector, but I'm aware that once I have this fixed, I will also have to change Translate My Store's language switcher or substitute it for the Shopify one.
I followed your steps, but if I only have "Portuguese" available for my .pt domain, then the Shopify language switcher disappears, and clients aren't able to change to English if they want/need. How could I fix that? Is there a way to have the language switcher forward the user to the right subdomain?
I am referring to this language switcher on the header of your site:
This is not coming from Shopify, I suspect this is coming from the "Translate my Store" app you are using, and I would suggest reaching out to them to describe your issue and to ensure their app is compatible with international domains.
Yes you will need to offer your buyers the ability to switch languages - the Brooklyn theme has one built into the theme settings (Themes --> Customize --> Footer), or you can use Shopify's Geolocation app.