Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mention-me.com/llms.txt

Use this file to discover all available pages before exploring further.

Shopify has multiple concepts of Locale, including language and currency. This doesn’t map exactly to Mention Me locales, so it can be helpful to introduce some translation based on your requirements. By default, Mention Me assumes a combination of the Shopify Locale and Shopify Country, or for the Order Confirmation page, the Billing Address Country. You can customise this to your needs and the offers you will be presenting to customers.

Default

For most journeys:
["locale", Shopify.locale + "_" + Shopify.country],
For the referrer journey on post-purchase:
["locale", Shopify.locale + "_" + Shopify.checkout.billing_address.country_code],
Replace these lines to map to the locale of your choice.

Your Choices

The default is usually sensible, but it may not always match the offers you want to present or the offers configured in Mention Me.

Hardcode the locale

Always show all customers an offer in English in GBP:
["locale", "en_GB"],

Write custom locale logic

The Locale must match a Mention Me Locale: ISO 639-1 language code + underscore (_) + ISO 3166-1 alpha-2 country code (e.g. fr_FR for French/France).

Example

The following maps:
  • US customers to US English in US Dollars
  • UK customers to British English in British Pounds
  • Norwegian customers to English, with Norwegian Krone
  • French, German and Spanish customers to English, with Euros
function getMentionMeLocale() {
    var countryCode = Shopify.country;

    if (Shopify.checkout && Shopify.checkout.billing_address) {
       var countryCode = Shopify.checkout.billing_address.country_code;
    }

    switch (countryCode) {
        case "US":
            return "en_US";
        case "GB":
            return "en_GB";
        case "NO":
            return "en_NO";
        case "FR":
        case "DE":
        case "ES":
            return "en_EU";
        default:
            return "en_GB";
    }
}
Then adjust the existing line:
["locale", getMentionMeLocale()],

Your locales

Your choices depend on how you want to show the journey to customers. Speak to the Onboarding Team for help with the best mapping.
Last modified on March 31, 2026