Environment variables, authorization, and localization

Video Tutorial 3. Data Retrieval, Authorization, and Localization

Watch video

The video is in Russian, but you can enable automatic subtitles on YouTube.

The plugin's functionality is divided into separate modules (links lead to their documentation):

  • Environment variables allow retrieving platform SDK data about the user's device, such as language, operating system, or browser.
  • Authorization enables leaderboards and payments integration. However, the game must remain playable without authorization (see item 1.2). The authorization module provides access to user data like nickname or avatar. It's also required for certain modules like Leaderboards or Payments.
  • Languages:
    • Game localization management: automatically switches the game's language based on the platform's detected language.

      Warning

      The game must be translated into at least one language selected when submitting the draft (see item 1.2). We recommend adding localizations for ru, en, and tr.

      If the game language is manually selectable, please note Game requirements item 6.9.

    • Auto-translation using Google Translate.