/

Adding a Language

Learn how to Add Your Language to Donation Store

Adding the Language to Your Store


Since v2.3.4, by creating the new language file in the /languages directory with a valid meta field, with a locale and name in it, Donation Store will auto detect the language and you can select it as a default language in your webstore's settings.

If you want to provide it to your users as a selectable language you need to add it to the language picker by providing a new line. The language picker is by default in the footer, so you can get reference from there. The line you need to add is (replace the locale with yours)

<a class="dropdown-item" href="/language/yourLocale?next={% firstof request.path '/' %}">Language Name <div class="float-right">{% if request.session.language %}{% if request.session.language == 'yourLocale' %}<i class="fa fa-check"></i> {% endif %}{% endif %}</div></a>

So English looks like

<a class="dropdown-item" href="/language/en_IE?next={% firstof request.path '/' %}">English <div class="float-right">{% if request.session.language %}{% if request.session.language == 'en_IE' %}<i class="fa fa-check"></i> {% endif %}{% endif %}</div></a>

Have Questions? Open a Support Ticket

View Common Issues on the Knowledgebase

Video Guides on YouTube

Other clients and Donation Store developers hang out on our Discord server, where you can ask for support in #ds-chat, or if you are a Client and you don't uet have your Client role on Discord, let us know and we can add it. Once added you get access to our private Client's support channel.