---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/sdk/unity/env-auth-lang.md
  - https://yandex.com/dev/games/doc/hi/sdk/unity/env-auth-lang.md
  - https://yandex.com/dev/games/doc/ko/sdk/unity/env-auth-lang.md
  - https://yandex.com/dev/games/doc/ru/sdk/unity/env-auth-lang.md
  - https://yandex.com/dev/games/doc/tr/sdk/unity/env-auth-lang.md
  - https://yandex.com/dev/games/doc/vi/sdk/unity/env-auth-lang.md
  - https://yandex.com/dev/games/doc/zh/sdk/unity/env-auth-lang.md
  - href: en/sdk/unity/env-auth-lang.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/en/llms.txt

# Environment variables, authorization, and localization

<!-- source: en/_includes/script-common.md -->
<!-- source: en/_includes/script/index-js.md -->

<!-- endsource: en/_includes/script/index-js.md -->

<!-- source: en/_includes/script/requirements-js.md -->

<!-- endsource: en/_includes/script/requirements-js.md -->

<!-- source: en/_includes/script/image-modal-js.md -->

<!-- endsource: en/_includes/script/image-modal-js.md -->
<!-- endsource: en/_includes/script-common.md -->

#|
|| ![](../../_images/icons/video.svg) | Video Tutorial 3. Data Retrieval, Authorization, and Localization

<div class="cut-button">

{% cut "Watch video" %}

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

{% list tabs %}

- Yandex

  @[](https://runtime.strm.yandex.ru/player/video/vplviwz6uirn3yuha6kz?autoplay=0&mute=0)

- YouTube

  @[youtube](https://youtu.be/olyTBkJJAfY?si=0ja5BNd6PE805aOp)

{% endlist %}

{% endcut %}

</div>

||
|#

The plugin's functionality is divided into separate modules (links lead to their documentation):
- [Environment variables](https://max-games.ru/plugin-yg/doc/envir/?en){.external} allow retrieving platform SDK data about the user's device, such as language, operating system, or browser.
- [Authorization](https://max-games.ru/plugin-yg/doc/auth/?en){.external} enables leaderboards and payments integration. However, the game must remain playable without authorization (see [item 1.2](https://yandex.com/dev/games/doc/en/concepts/requirements.md#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](https://max-games.ru/plugin-yg/doc/lang/?en){.external}:
    - [Game localization management](https://max-games.ru/plugin-yg/doc/lang/?en){.external}: automatically switches the game's language based on the platform's detected language.

      {% note warning %}

      The game must be translated into at least one language selected when submitting the draft (see [item 1.2](https://yandex.com/dev/games/doc/en/concepts/requirements.md#2-10)). We recommend adding [localizations](https://yandex.com/dev/games/doc/en/concepts/languages-and-domains.md#languages) for ru, en, and tr.

      If the game language is manually selectable, please note Game requirements [item 6.9](https://yandex.com/dev/games/doc/en/concepts/requirements.md#6-9).

      {% endnote %}

    - [Auto-translation](https://max-games.ru/plugin-yg/doc/lang/?en#:~:text=for%20translating%20texts.-,Auto%20Translate%20Langs,-A%20complete%20solution){.external} using Google Translate.

