Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Custom Character Sheet - translation.json combining elements for reuse?

1758510490

Edited 1758510633
Does roll20 support a version of JSON { "key1": "hello", "key2": "world", "key3": "$t(key1) $t(key2)" } I have a talent tree and it has prerequisites like 'this talent OR this other talent."   I already have data-i18n elements for the name of those talents and was hoping to not have to maintain the talent name in two separate data-i18n elements. That way I could re-use the existing ones so I could display the prerequisite names in a tool-tip or separate column and if I have to update the name, I only update it in one element.
1758551915
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
No, but that sort of combination could just be done via HTML. E.g. just use two spans that have the same i18n key as you use elsewhere.
That is 100% the correct answer for what I needed and thank you for providing it. My brain was so stuck on combining the elements I didn't step back and reassess what I was trying to accomplish and how to solve it.