# Snippet Übersetzung ist in der Storefront leer

**URL:** <https://forum.shopware.com/t/snippet-ubersetzung-ist-in-der-storefront-leer/65934>\
**Category:** Programmierung\
**Created:** [1. April 2020 um 13:23 UTC](https://forum.shopware.com/t/snippet-ubersetzung-ist-in-der-storefront-leer/65934 "2020-04-01T13:23:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakowu](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rakowu](https://forum.shopware.com/u/Rakowu)\
**Post date:** [1. April 2020 um 13:23 UTC](https://forum.shopware.com/t/snippet-ubersetzung-ist-in-der-storefront-leer/65934/1 "2020-04-01T13:23:58Z")

</div>

Hallo zusammen,

ich habe ein Plugin mit einer eigenen snippet Übersetzung für die Storefront. Hierbei extende ich ganz normal die gegebenen locals wie de-DE und en-GB.

Die übersetzung wird ohne Probleme angelegt und kann im backend/admin Bereich bearbeitet werden. Jedoch bleibt in der Storefront auch nach storefront:build, theme:compile und cache:clear der Textbaustein ohne Übersetzung bzw. zeigt mir “detail.driverTab” an. Also den namen vom Textbaustein und nicht deren Inhalt. Symfony zeigt mir auch an das in der Storefront kein Inhalt für den Textbaustein vorhanden ist.

Hat jemand eine Idee was noch fehlen könnte?

**Aufbau**

/container/shopware/custom/plugins/DriverTab/src/Resources/snippet/de\_DE

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-&nbsp; messages.de-DE.json

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- SnippetFile\_de\_DE.php

**Inhalt**

**messages.de-DE.json:**

{

&nbsp;&nbsp;&nbsp;&nbsp;“detail”:&nbsp;{

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"tabsDriver&nbsp;":&nbsp;“Treiber”

&nbsp;&nbsp;&nbsp;&nbsp;}

}

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

**SnippetFile\_de\_DE.php:**

&nbsp;

\<?php declare(strict\_types=1);

&nbsp; namespace&nbsp;DriverTab\Resources\snippet\de\_DE; &nbsp; use&nbsp;Shopware\Core\System\Snippet\Files\SnippetFileInterface; &nbsp; class&nbsp;SnippetFile\_de\_DE&nbsp;implements&nbsp;SnippetFileInterface { &nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getName():&nbsp;string &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;'messages.de-DE'; &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getPath():&nbsp;string &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;\_\_DIR\_\_&nbsp;.&nbsp;'/messages.de-DE.json'; &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getIso():&nbsp;string &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;'de-DE'; &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getAuthor():&nbsp;string &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;'fuss@intos.de'; &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;public&nbsp;function&nbsp;isBase():&nbsp;bool &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false; &nbsp;&nbsp;&nbsp;&nbsp;} } \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ &nbsp; **services.xml** \_\<?xml version="1.0" ?\>\_

&nbsp;

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xsi:schemaLocation=“[http://symfony.com/schema/dic/services](http://symfony.com/schema/dic/services)&nbsp;[http://symfony.com/schema/dic/services/services-1.0.xsd](http://symfony.com/schema/dic/services/services-1.0.xsd)”\>_

&nbsp;

_&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_

_&nbsp;&nbsp;&nbsp;&nbsp;_

---

<div class="post-metadata">

**Author:** ![Rakowu](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rakowu](https://forum.shopware.com/u/Rakowu)\
**Post date:** [1. April 2020 um 14:44 UTC](https://forum.shopware.com/t/snippet-ubersetzung-ist-in-der-storefront-leer/65934/2 "2020-04-01T14:44:53Z")

</div>

Hmm ok die xml war nicht komplett wegen den tags:

&nbsp;

**services.xml**

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Rakowu](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rakowu](https://forum.shopware.com/u/Rakowu)\
**Post date:** [2. April 2020 um 08:26 UTC](https://forum.shopware.com/t/snippet-ubersetzung-ist-in-der-storefront-leer/65934/3 "2020-04-02T08:26:08Z")

</div>

Über jede Hilfe wäre ich dankbar 🙂

---

<div class="post-metadata">

**Author:** ![Rakowu](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rakowu](https://forum.shopware.com/u/Rakowu)\
**Post date:** [2. April 2020 um 09:52 UTC](https://forum.shopware.com/t/snippet-ubersetzung-ist-in-der-storefront-leer/65934/4 "2020-04-02T09:52:36Z")

</div>

Ok habs gelöst. Scheinbar ein Problem mit der json gewesen.&nbsp;
