# 테마 및 테마 컴포넌트에 site\_texts 문자열을 표시하는 방법?

**URL:** <https://meta.discourse.org/t/how-to-show-site-texts-strings-to-themes-and-theme-components/151927>\
**Category:** Product Support\
**Created:** [5월 19, 2020, 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:** 1

<div class="post-metadata">

**Author:** ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)\
**Post date:** [5월 19, 2020, 10:49오전 UTC](https://meta.discourse.org/t/how-to-show-site-texts-strings-to-themes-and-theme-components/151927/1 "2020-05-19T10:49:08Z")

</div>

Tocic Share를 만들었지만 기본 **js.share.facebook** 예제를 사용하려고 합니다. [이 글](https://meta.discourse.org/t/adding-localizable-strings-to-themes-and-theme-components/109867)에 따르면 제 코드가 잘못 작성되어 표시되지 않는다고 합니다.

토픽에 새 단어를 추가하는 대신 올바르게 표시하는 방법을 알려주실 수 있을까요?

> <https://github.com/bcat95/discourse-topic-share/blob/0a24b3fc965748f715be7f04923027028c943df4/common/head_tag.html#L33>

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/e/eeb17c31623690fd3ea518dceea061999eb950a5.png)

다음과 같이 시도해 보았습니다: `I18n.t(themePrefix("my_translation_key"))`

---

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