Skip to content

Localization ​

All built-in text comes from strings, set per picker or on the provider, so you can plug in your i18n library:

tsx
<PickerProvider
  strings={{
    placeholder: t('select'),
    searchPlaceholder: t('search'),
    empty: t('nothingToShow'),
    clearSearch: t('clearSearch'),
    done: t('done'),
    selectedCount: (n) => t('selectedCount', { count: n }),
  }}
>
  <App />
</PickerProvider>
KeyDefault
placeholderSelect an option
titleSelect (sheet title when there's no title or label)
searchPlaceholderSearch
searchingSearching…
emptyNothing to show
clearSearchClear search
closeClose
doneDone
clearAllClear all
loadingMoreLoading more…
selectedCount(n)`${n} selected`
more(n)`+${n}`
remove(label)`Remove ${label}`

The English defaults are exported as defaultStrings.

Released under the MIT License.