All things Shopify and commerce
Hello Friends,
I have 2 language in my shopify store.
I want to change the English language name from English or ENG to " E"
I just need letter E which is short for English
I would appreciate if you can provide code link to added to my store?
Thank you
Solved! Go to the solution
This is an accepted solution.
@usershop2024Please follow the below steps to change the language name. Let me know whether it is helpful for you.
{% if localization.language.iso_code == 'en' %}
<span>E</span>
{% elsif localization.language.iso_code == 'fr' %}
<span>F</span>
{% else %}
<span>{{ localization.language.endonym_name | capitalize }}</span>
{% endif %}
{% if language.iso_code == 'en' %}
<span>E</span>
{% elsif language.iso_code == 'fr' %}
<span>F</span>
{% else %}
<span>{{ language.endonym_name | capitalize }}</span>
{% endif %}
{% assign language_title = localization.language.endonym_name | split: '' | first %}
<span>{{ language_title | upcase }}</span>
{% assign language_title = language.endonym_name | split: '' | first %}
<span>{{ language_title | upcase }}</span>
@wo Thanks for your response.
I added the code but it have some issue , the drop down language list have repeated Letter
If i have French and English I want to French to be F and English to be E , In the drop down list should have F and E,
can you adjust the code ?
Thank you
This is an accepted solution.
@usershop2024Please follow the below steps to change the language name. Let me know whether it is helpful for you.
{% if localization.language.iso_code == 'en' %}
<span>E</span>
{% elsif localization.language.iso_code == 'fr' %}
<span>F</span>
{% else %}
<span>{{ localization.language.endonym_name | capitalize }}</span>
{% endif %}
{% if language.iso_code == 'en' %}
<span>E</span>
{% elsif language.iso_code == 'fr' %}
<span>F</span>
{% else %}
<span>{{ language.endonym_name | capitalize }}</span>
{% endif %}
{% assign language_title = localization.language.endonym_name | split: '' | first %}
<span>{{ language_title | upcase }}</span>
{% assign language_title = language.endonym_name | split: '' | first %}
<span>{{ language_title | upcase }}</span>
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025