@pmcollab/coworkstream-i18n
v0.1.0
Published
Translated label sets for @pmcollab/coworkstream. Pass to the `labels` prop.
Downloads
650
Readme
@pmcollab/coworkstream-i18n
Translated label sets for @pmcollab/coworkstream.
Install
npm install @pmcollab/coworkstream-i18nUse
import { WorkStream } from '@pmcollab/coworkstream'
import { getLabels } from '@pmcollab/coworkstream-i18n'
<WorkStream items={items} labels={getLabels(navigator.language)} />getLabels(localeCode) accepts BCP-47 codes (en, es, fr-CA, pt-BR, etc.) and returns the closest available label set, falling back to English.
Available locales
en— English (default)es— Spanishfr— Frenchde— Germanja— Japanesept— Portuguese
Need another locale? Either:
- Open an issue with the language tag, or
- Build your own
Partial<WorkStreamLabels>and pass directly:
<WorkStream items={items} labels={{ title: '受信箱', delegate: '委任' }} />License
Commercial. See LICENSE in the repository root.
