# Texts: Edit and translate

If you want to change or translate texts, you can do this in the vast majority of cases using text modules. This is a basic function of Shopware and not a function of our themes, although we of course also use this practical basic function extensively.

{% hint style="success" %}
**Tip**: You can find more information about the basic functions of Shopware 6 in the [Shopware documentation](https://docs.shopware.com/en). If you need more information about the topic ‘text modules’, we recommend the following article: [Shopware 6 - Snippets](https://docs.shopware.com/en/shopware-6-en/settings/snippets)
{% endhint %}

## Editing and translating texts with snippets

If you want to change or translate a text, open the snippet manager in your administration's "Settings".

> You can find the snippet manager of Shopware 6 in the Shopware settings:
>
> * "Settings" => "Shop" => "Snippets"

Select the desired language set and search for the desired text. This way, you should be able to find the corresponding snippet directly.

### For example

Let's take the phone number in the "Service Hotline" widget in the footer.

> Support and counselling via:
>
> **0180 - 000000**
>
> Mon-Fri, 9 am - 5 pm

Open the snippet manager and select the English language set (usually "BASE en-GB").

Now search for small pieces of text such as "0180 - 000000" or "Support and counselling via" or "Mon-Fri, 9 am - 5 pm" and shorten your search until you find one or more snippets.

{% hint style="success" %}
**Tip**: The trick here is that the link is integrated into the snippet as HTML code. So if you search for "`Support and counselling via: 0180 - 000000`" you won't find the snippet because the snippet's text is "`Support and counselling via: <a href="tel:+49180000000">0180 - 000000...`".
{% endhint %}

{% hint style="info" %}
**Note**: Not all snippets are HTML-capable. However, if a snippet uses HTML code, this is a good indicator that it is HTML-capable.
{% endhint %}

<figure><img src="/files/9yeVBPsGQuhuasCbSTQO" alt=""><figcaption><p>Search for "Support and counselling via: 0180 - 000000"</p></figcaption></figure>

<figure><img src="/files/422QPMBKxRHBTDUuHyFx" alt=""><figcaption><p>Search for "Support and counselling"</p></figcaption></figure>

{% hint style="success" %}
**Tip**: Similar to snippets with HTML code, it may also be that a punctuation mark (e.g. a colon) is not part of the snippet itself. Omit closing punctuation marks if you don't find a snippet.
{% endhint %}

Once you have found the right snippet (e.g. `footer.serviceHotline`), you can customise it as you like and translate it into other languages.

<figure><img src="/files/lIGykY7dHr67NXdMzAsI" alt=""><figcaption><p>Edit the "footer.serviceHotline" snippet</p></figcaption></figure>

Save your changes and reload the Storefront.

If the change is not displayed, clear the Shopware cache and your browser cache.

As a final tip, we recommend that you save the original texts of snippets in the best possible way, for example in a text file. This way you can always revert to them.

***

## Find snippets even faster

For many of the features in ThemeWare®, you will find a link in the help text for the relevant theme configuration that will take you directly to the editor for the corresponding snippet.

<figure><img src="/files/67ytWaw6hRtfpnoUPuDX" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Tip**: You can also search the corresponding JSON file in the Shopware core for the text you are looking for: [storefront.en-GB.json](https://github.com/shopware/shopware/blob/trunk/src/Storefront/Resources/snippet/en_GB/storefront.en-GB.json)
{% endhint %}

***

## %Placeholders% in snippets

In some snippets, you will find placeholders such as `%shippingTime%`. These are replaced by a specific value using a Twig function in the corresponding template file.

{% code title="storefront.en-GB.json" %}

```json
...
"deliveryShippingTime": "Estimated delivery time: %shippingTime% workdays",
...
```

{% endcode %}

Do not change these placeholders if you want to continue using them.

If you want to stop displaying the delivery time, for example, you can also remove the placeholder.

{% hint style="info" %}
**Note**: A placeholder is only replaced if the template that uses the corresponding snippet provides for this. This means that you cannot use placeholders in any other snippets.
{% endhint %}

***

#### Further information

You can find more information on the topic of "snippets" in the following article:

{% content-ref url="/pages/FhEkW3DPPqBkri1ka2e7" %}
[Snippets (Languages)](/knowledge-base/basic-knowledge/snippets.md)
{% endcontent-ref %}

The following overview shows all of the snippets available in ThemeWare®:

{% embed url="<https://docs.themeware.design/more-knowledge/snippets>" %}
ThemeWare® Manual => Snippets
{% endembed %}

You can also find more information on the topic of "snippets" in the Shopware documentation:

{% embed url="<https://docs.shopware.com/en/shopware-6-en/settings/snippets>" %}
Shopware documentation: Snippets
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledge.themeware.design/knowledge-base/tutorials/texts-editing-and-translation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
