# Textbausteine funktionieren nicht

**URL:** https://forum.shopware.com/t/textbausteine-funktionieren-nicht/99933
**Category:** Administration
**Created:** [1. Juni 2023 um 16:44 UTC](https://forum.shopware.com/t/textbausteine-funktionieren-nicht/99933 "2023-06-01T16:44:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lunex](https://avatars.discourse-cdn.com/v4/letter/l/5e9695/32.png) [@lunex](https://forum.shopware.com/u/lunex)
#### Post date: [1. Juni 2023 um 16:44 UTC](https://forum.shopware.com/t/textbausteine-funktionieren-nicht/99933/1 "2023-06-01T16:44:00Z")

</div>

Hay Leute.

Ich bin dieser Anleitung gefolgt: [Adding snippets - Shopware Developer](https://developer.shopware.com/docs/guides/plugins/plugins/administration/adding-snippets)

Meine Struktur sieht so aus:  
custom/plugins/alpha/src/Resources/app/administration/src/module/btnbuy/snippet/de\_DE.json  
custom/plugins/alpha/src/Resources/app/administration/src/module/btnbuy/snippet/en\_GB.json

Der Inhalt der Datei so:  
de\_DE:

```auto
{
    "alpha": {
        "addToCartClickedText": "Wird in den Warenkorb gelegt"
    }
}

```

en\_GB:

```auto
{
    "alpha": {
        "addToCartClickedText": "Putting in the cart"
    }
}

```

Wenn ich das Plugin deaktivier und wieder aktivier, finde ich diesen Textbaustein aber nicht wieder im Backend.

Beim googlen komm ich bisher nicht weiter. ChatGPT nannte mir andere Ordner-Strukturen, aber diese führten auch nicht zum Erfolg.

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [1. Juni 2023 um 17:20 UTC](https://forum.shopware.com/t/textbausteine-funktionieren-nicht/99933/2 "2023-06-01T17:20:11Z")

</div>

Das sind Admin-Snippets. Dafür gibt es keinen Editor.

Die Textbausteine unter Einstellungen im Backend sind ausschließlich Frontend-Snippets.  
Falls du Frontend-Snippets erstellen möchtest: [Add translations - Shopware Developer](https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-translations)

---

<div class="post-metadata">

### Author: ![lunex](https://avatars.discourse-cdn.com/v4/letter/l/5e9695/32.png) [@lunex](https://forum.shopware.com/u/lunex)
#### Post date: [1. Juni 2023 um 17:30 UTC](https://forum.shopware.com/t/textbausteine-funktionieren-nicht/99933/3 "2023-06-01T17:30:39Z")

</div>

Danke! Das hat funktioniert. Mir ist noch ein Fehler aufgefallen. Die Dateien de-DE heißen und nicht de\_DE.
