carbon-design-system / ibm-products

A Carbon-powered React component library for IBM Products
https://carbon-for-ibm-products.netlify.app/
Apache License 2.0
90 stars 131 forks source link

Discuss globalization approach for condition builder #5043

Closed elycheea closed 2 weeks ago

elycheea commented 3 months ago

Dotcom uses JSON as well for masthead so may be some approaches we can investigate or adopt.

amal-k-joy commented 3 weeks ago

@elycheea We have exposed a prop translateWithId which a optional callback which gets called from component with message id as the argument, and the user can return the text corresponding to that id. This is an approach carbon has already used. Can we close this issue?