Changing locale name dropdown possible? (other than iso_code)

Highlighted
Tourist
3 0 0

Hello,

 

We have a store that serves 2 languages, and i'm looking to customise the returned language text strings displayed from the dropdown menu. Is this possible? Using iso_code returns "PT-PT", for language and region (Portuguese, Portugal), but im trying to keep it as only language "PT", similar to "EN". Like this:

lang-change.jpg

Is this possible?

I found how to create new locales, but it doesn't address this name change. Trying to rename the locale json files, or even creating one from Scratch to use as workaround doesnt really work. I'm also using the Translation Lab app, if that matters.

Thank you

0 Likes
Highlighted
Shopify Expert
2 0 1

I am trying to do the exact same thing, and so far havn't found any real solution.
I would suggest handling this using a Navigation and as links values simply use '/pt' and link.title = "Pt" . 

You can have a better control like this. 

0 Likes