An i18next formatter that wraps list items in <strong> tags. This package provides a simple formatter for use with i18next and react-i18next's Trans component. When applied, it formats array values by wrapping each element in <strong> tags, useful for emphasizing list items in translations. The package is stable at version 1.0.1. There are no known similar packages providing exactly this functionality for i18next.
npm install i18next-formatter-stronglistNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initialization of i18next, adding the stronglist formatter, and using Trans component to render a list with strong tags.
Call i18next.services.formatter?.add('stronglist', stronglist) after i18next.init.Use the exact string 'stronglist' when adding the formatter and in the i18next key.
Ensure i18next version >= 21.0.0 and that you have called i18next.init() before accessing formatter.
Install react-i18next: npm install react-i18next
No dependency data recorded yet.