Skip to content

Latest commit

 

History

History
24 lines (23 loc) · 1.46 KB

g11n.md

File metadata and controls

24 lines (23 loc) · 1.46 KB

Notes of globalization

  • 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 with react-i18next library. Search for translationIds or translationKeys 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. Set locale and dateFormat props to fully utilize Flatpickr 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.