Skip to content

Locales

Supported Locales

Gamifiera supports multiple locales to provide a localized experience for your customers. The locale setting determines the language and regional formatting used in the widgets and interface.

Available Locales

The following locales are currently supported:

Locale CodeLanguage/Region
en_USEnglish (United States)
sv_SESwedish (Sweden)
da_DKDanish (Denmark)
no_NONorwegian (Norway)
nb_NONorwegian Bokmål (Norway)
fi_FIFinnish (Finland)
nl_NLDutch (Netherlands)
pl_PLPolish (Poland)
de_DEGerman (Germany)
de_ATGerman (Austria)
fr_FRFrench (France)

Setting the Locale

The locale is configured in the main script initialization call. Set the locale parameter to one of the supported locale codes:

html
<script>
    window.gmf = function() {
        (window._gmf = window._gmf || []).push(Object.values(arguments));
    };
    
    var s = document.createElement("script");
    s.type = "text/javascript";
    s.src = "https://cdn.gamifiera.com/static/gmf/loader.js";
    s.async = true;
    document.head.appendChild(s);
    
    gmf('init', {
        merchantId: xxxx,
        locale: 'en_US', // Set your desired locale here
        customerToken: 'CUSTOMER_TOKEN',
    });
</script>

📖 See Also:
For complete setup instructions, see Main Script and Initialization.