Profile Languages

For websites with multiple languages, how you can change Gameball widget language based on active website language

Gameball supports multiple languages for the player profile widget. The widget language can be changed based on your player's (customer) active language on the website.

Learn how you can configure the languages on your Gameball account through this article.

Supported Languages & Codes

Language

Code

Arabic

ar

Dutch

nl

English

en

French

fr

German or Deutsch

de

Hungarian

hu

Italian

it

Portuguese

pt

Spanish

es

Swedish

sv

Taiwanese Mandarin

zh-TW

In order to show the correct language of the widget based on the active language on the website, you just need to use the language code inside the lang variable in the code snippet.

Example for French guest view

<script>
    window.GbLoadInit = function(){
        GbSdk.init({
            lang: 'fr',
            APIKey: '8fxxxxxxxxxxxxxxx'
        });
    };
</script>
<script defer src="https://assets.gameball.co/widget/js/gameball-init.min.js"></script>

Last updated