# So zeigen Sie site\_texts-Strings für Themes und Theme-Komponenten an?

**URL:** <https://meta.discourse.org/t/how-to-show-site-texts-strings-to-themes-and-theme-components/151927>\
**Category:** Product Support\
**Created:** [19. Mai 2020 um 10:49 UTC](https://meta.discourse.org/t/how-to-show-site-texts-strings-to-themes-and-theme-components/151927 "2020-05-19T10:49:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [19. Mai 2020 um 11:10 UTC](https://meta.discourse.org/t/how-to-show-site-texts-strings-to-themes-and-theme-components/151927/2 "2020-05-19T11:10:14Z")

</div>

Fügen Sie dies an den Anfang Ihrer Komponente ein

```javascript
const I18n = require("I18n").default;

```

Anschließend können Sie bei Bedarf den Standardtext von Discourse wie folgt verwenden:

```javascript
I18n.t("ÜBERSetzungSSCHLÜSSEL")

```

Zum Beispiel wird dies

```javascript
h('span', 'Teilen über Facebook')

```

zu

```javascript
h("span", I18n.t("share.facebook"))

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-show-site-texts-strings-to-themes-and-theme-components/151927)._
