# Unique locale per DButton?

**URL:** https://meta.discourse.org/t/unique-locale-per-dbutton/383837
**Category:** Development
**Created:** [September 24, 2025, 3:10am UTC](https://meta.discourse.org/t/unique-locale-per-dbutton/383837 "2025-09-24T03:10:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [September 24, 2025, 3:10am UTC](https://meta.discourse.org/t/unique-locale-per-dbutton/383837/1 "2025-09-24T03:10:17Z")

</div>

If I have multiple DButtons being displayed in an `each ... in` loop, is there a way to have unique locales for each button label and title in my en.yml? Or is the way to make a setting for the button label and title per button and use `translatedLabel` and `translatedTitle` a better option? I’m using `type: objects` for the settings, btw.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [September 24, 2025, 11:45am UTC](https://meta.discourse.org/t/unique-locale-per-dbutton/383837/2 "2025-09-24T11:45:24Z")

</div>

You could add the button index as part of the locale key. But that won’t guarantee that you would have a value for each key, you could use a fallback I guess.
