Appearance
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 Code | Language/Region |
|---|---|
en_US | English (United States) |
sv_SE | Swedish (Sweden) |
da_DK | Danish (Denmark) |
no_NO | Norwegian (Norway) |
nb_NO | Norwegian Bokmål (Norway) |
fi_FI | Finnish (Finland) |
nl_NL | Dutch (Netherlands) |
pl_PL | Polish (Poland) |
de_DE | German (Germany) |
de_AT | German (Austria) |
fr_FR | French (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.