- For simple components, translatable strings can be provided via React props. Click on "Show Info" button at the top right in each components' page in http://react.carbondesignsystem.com for more details.
- Some components have
translateWithId
props, that is API-compatible withreact-i18next
library. Search fortranslationIds
ortranslationKeys
to see the list of string IDs. - Some components, e.g.
<AccordionItem>
, work as list items. They should be ordered with locale-specific sorting rules in mind. - Some components, e.g.
<DataTable>
, support custom sorting. Such custom sorting logic should take locale-specific sorting rules into account. - Date picker component relies on the G11N features in
Flatpickr
library. Setlocale
anddateFormat
props to fully utilizeFlatpickr
library's G11N features. If you are using date/time in other components, make sure they are correctly formatted considering different formats in different locales. - Also refer to G11N considerations in our vanilla library.