# DButton의 @label 속성을 올바르게 표시하는 방법

**URL:** https://meta.discourse.org/t/get-dbutton-label-attribute-to-display-properly/269262
**Category:** Development
**Created:** [6월 22, 2023, 12:21오후 UTC](https://meta.discourse.org/t/get-dbutton-label-attribute-to-display-properly/269262 "2023-06-22T12:21:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Abraham\_Olaobaju](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abraham_olaobaju/32/309934_2.png) [@Abraham\_Olaobaju](https://meta.discourse.org/u/Abraham_Olaobaju)
#### Post date: [6월 22, 2023, 12:21오후 UTC](https://meta.discourse.org/t/get-dbutton-label-attribute-to-display-properly/269262/1 "2023-06-22T12:21:36Z")

</div>

```plaintext
<DButton
                @class="flw-header-btn"
                @id="flw-create-account-header-btn"
                @action={{route-action "showLogin"}}
                @label="Already_have_an_account?_Login"
      />

```

이렇게 렌더링됩니다.

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

도움을 주시면 감사하겠습니다.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [6월 22, 2023, 12:46오후 UTC](https://meta.discourse.org/t/get-dbutton-label-attribute-to-display-properly/269262/2 "2023-06-22T12:46:48Z")

</div>

문자열을 사용하려는 것으로 보입니다. 하지만 이는 지원되지 않는 것으로 생각됩니다.

문자열에 연결된 로컬라이제이션 키를 제공해야 합니다.

참고:

> [@Add localizable strings to themes and theme components](https://meta.discourse.org/t/add-localizable-strings-to-themes-and-theme-components/109867?u=merefield):
>
> For those looking to add custom languages and translations to a Discourse theme or theme component, they [can now include](https://github.com/discourse/discourse/commit/880311dd4d2b367e54cc8244fba60fce69e121c3) localised strings, which are made available for use in UI components. Translations are stored in the same format as core/plugin translations, and can be used in almost the same way. Themes can supply translation files in a format like /locales/{locale}.yml. These files should be valid YAML, with a single top level key equal to the locale being defined. These can be defined us…

플러그인에서 이를 수행하는 방법에 대한 안내를 위해 인기 있는 플러그인의 내부 코드를 확인해 보세요.

일반적으로 기존 소스 코드에서 하려는 작업의 예시를 항상 찾아보세요.

---

<div class="post-metadata">

### Author: ![Abraham\_Olaobaju](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abraham_olaobaju/32/309934_2.png) [@Abraham\_Olaobaju](https://meta.discourse.org/u/Abraham_Olaobaju)
#### Post date: [6월 22, 2023, 12:52오후 UTC](https://meta.discourse.org/t/get-dbutton-label-attribute-to-display-properly/269262/3 "2023-06-22T12:52:40Z")

</div>

@merefield 감사합니다 🙏

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [7월 22, 2023, 12:52오후 UTC](https://meta.discourse.org/t/get-dbutton-label-attribute-to-display-properly/269262/4 "2023-07-22T12:52:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
