Skip to content

Language

Overview

The language parameter specifies the language in which the game will be displayed to the player. GPAS supports multiple languages to accommodate players from different regions.

Supported Languages

The following table lists the languages supported by the GPAS system:

AcronymLanguage
ptPortuguese (Brasil)
enEnglish
esSpanish
noNorwegian

Implementation

When implementing language support:

  1. Include the language parameter in the game launcher URL as a query string parameter
  2. Use the language acronym (e.g., “en”) rather than the full name
  3. Ensure that the language is supported by the game provider
  4. Implement proper error handling for unsupported languages
  5. Consider defaulting to a specific language if the player’s preferred language is not supported

Example

https://subdomain.example.com/launcher/game/?authToken=abc123&walletId=wallet123&language=en

Language Selection

If your system supports multiple languages:

  1. Provide a way for players to select their preferred language
  2. Remember the player’s language preference for future sessions
  3. Consider detecting the player’s language automatically based on their browser settings
  4. Allow players to change their language preference at any time

Localization Considerations

When implementing language support:

  1. Ensure that all game text is properly translated
  2. Consider cultural differences when displaying content
  3. Format dates, times, and numbers according to the selected language’s conventions
  4. Test the game in all supported languages to ensure proper display

Error Handling

Implement proper error handling for language-related issues:

  1. Unsupported language
  2. Missing translations
  3. Display issues with certain characters
  4. Fallback to a default language if necessary