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:
| Acronym | Language |
|---|---|
| pt | Portuguese (Brasil) |
| en | English |
| es | Spanish |
| no | Norwegian |
Implementation
When implementing language support:
- Include the language parameter in the game launcher URL as a query string parameter
- Use the language acronym (e.g., “en”) rather than the full name
- Ensure that the language is supported by the game provider
- Implement proper error handling for unsupported languages
- 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=enLanguage Selection
If your system supports multiple languages:
- Provide a way for players to select their preferred language
- Remember the player’s language preference for future sessions
- Consider detecting the player’s language automatically based on their browser settings
- Allow players to change their language preference at any time
Localization Considerations
When implementing language support:
- Ensure that all game text is properly translated
- Consider cultural differences when displaying content
- Format dates, times, and numbers according to the selected language’s conventions
- Test the game in all supported languages to ensure proper display
Error Handling
Implement proper error handling for language-related issues:
- Unsupported language
- Missing translations
- Display issues with certain characters
- Fallback to a default language if necessary