---
metadata:
  - name: generator
    content: Diplodoc Platform v5.66.0
alternate:
  - https://yandex.com.tr/dev/games/doc/en/sdk/defold/environment.md
  - https://yandex.com.tr/dev/games/doc/hi/sdk/defold/environment.md
  - https://yandex.com.tr/dev/games/doc/ko/sdk/defold/environment.md
  - https://yandex.com.tr/dev/games/doc/ru/sdk/defold/environment.md
  - https://yandex.com.tr/dev/games/doc/tr/sdk/defold/environment.md
  - https://yandex.com.tr/dev/games/doc/vi/sdk/defold/environment.md
  - https://yandex.com.tr/dev/games/doc/zh/sdk/defold/environment.md
  - href: https://yandex.com.tr/dev/games/doc/tr/sdk/defold/environment.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.com.tr/dev/games/doc/tr/llms.txt?revision=r21993288
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/dev/games/doc/tr/llms.txt?revision=r21993288

# Ortam değişkenleri

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

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

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

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

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

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

Oyunun çalıştığı ortam hakkında bilgi alabilirsiniz. Bu amaçla `ysdk.environment` nesnesi kullanılır.

```lua showLineNumbers
{
    app: {
        id: string
    },
    i18n: {
        lang: string
    },
    payload: string|nil
}
```

## environment nesnesi {#environment-object}

Oyunun ortam değişkenlerini içerir.

#|
|| **Parametre** | **Tür** | **Açıklama** ||
|| `app` | `table` | Oyun verileri. ||
|| `i18n` | `table` | Serviste uluslararasılaştırma. ||
|| `payload` | `string`\|`nil` | Oyun adresindeki `payload` parametresinin değeri. İsteğe bağlı parametre. Örneğin, `https://yandex.ru/games/app/123?payload=test` oyunu için `test` değeri şu şekilde alınabilir: `ysdk.environment.payload`.
 ||
|#

### app yapısı {#app-structure}

#|
|| **Parametre** | **Tür** | **Açıklama** ||
|| `id` | `string` | Oyun tanımlayıcısı. ||
|#


### i18n yapısı {#i18n-structure}

#|
|| **Parametre** | **Tür** | **Açıklama** ||
|| `lang` | `string` | [Yandex Oyunlar arayüz dili](https://yandex.com.tr/dev/games/doc/tr/concepts/languages-and-domains.md) ISO 639-1 biçiminde. Örneğin, `"tr"` oyunun şu anda Yandex Oyunlar'ın Türkçe arayüzünde çalıştığı anlamına gelir. Bu parametre, oyunda kullanıcının dilini otomatik olarak belirlemek için kullanılmalıdır ([madde 2.14](https://yandex.com.tr/dev/games/doc/tr/concepts/requirements.md#2-14)).
 ||
|#

---


<!-- source: tr/_includes/sdk/button-git.md -->
<a href="https://github.com/yandex-games-plugins/defold">
  <span class="button">Depo</span>
</a>
<!-- endsource: tr/_includes/sdk/button-git.md -->
