react-lightning-design-system icon indicating copy to clipboard operation
react-lightning-design-system copied to clipboard

Add i18n support

Open msmx-mnakagawa opened this issue 1 year ago • 0 comments

Though this is just an idea and currently where needs this feature is limited, but it may be better to add i18n support for some places.

How to introduce

Not by local way, but by global way such as using Context API

How to use

For example, title attributes for some abbr tags need to be specified dynamically based on a language setting. Currently, they are given statically as showing below.

  • https://github.com/mashmatrix/react-lightning-design-system/blob/d3e48d3/src/scripts/FormElement.tsx#L104
  • https://github.com/mashmatrix/react-lightning-design-system/blob/d3e48d3/src/scripts/RadioGroup.tsx#L94
  • https://github.com/mashmatrix/react-lightning-design-system/blob/d3e48d3/src/scripts/CheckboxGroup.tsx#L116

※ (FYI) Required input example in SLDS: https://www.lightningdesignsystem.com/components/input/#Required

msmx-mnakagawa avatar Nov 22 '24 09:11 msmx-mnakagawa