---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/sdk/construct-3/sprite.md
  - https://yandex.com/dev/games/doc/hi/sdk/construct-3/sprite.md
  - https://yandex.com/dev/games/doc/ko/sdk/construct-3/sprite.md
  - https://yandex.com/dev/games/doc/ru/sdk/construct-3/sprite.md
  - https://yandex.com/dev/games/doc/tr/sdk/construct-3/sprite.md
  - https://yandex.com/dev/games/doc/vi/sdk/construct-3/sprite.md
  - https://yandex.com/dev/games/doc/zh/sdk/construct-3/sprite.md
  - href: en/sdk/construct-3/sprite.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

# Localizing sprites

<!-- 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 -->

Sometimes it's also necessary to localize sprites in games. We've created a convenient method for adding sprite variations for different languages without any unnecessary complications while keeping the rest of your project unchanged.

{% note info %}

To enable sprite localization, you need to create translation files for all the languages you need.

{% endnote %}



## Adding animations {#animation}

To create a localized sprite, simply add new animations with your desired [language codes](https://yandex.com/dev/games/doc/en/concepts/languages-and-domains.md) to the sprite's animation list.

Create a sprite, add a new animation with the required language code, add the graphics. The final result should look similar to this.

{% note warning %}

Make sure there are no extra animations in the sprite with names that don't match any [supported language codes](https://yandex.com/dev/games/doc/en/concepts/languages-and-domains.md). Otherwise, the plugin will skip your sprite during localization.

{% endnote %}

![](../../_images/construct-3/sprite/animations.gif)

Now, when we click the play button (preview), we'll see that our sprite automatically changes its animation to match the player's current language.

![](../../_images/construct-3/sprite/runtime.webp)


---


<!-- source: en/_includes/button-git.md -->
<a href="https://github.com/yandex-games-plugins/construct3">
  <span class="button">Repository</span>
</a>
<!-- endsource: en/_includes/button-git.md -->
