Closed RebeccaStevens closed 1 month ago
Is it possible to use the Trans component from react-i18next for server-side translations?
Trans
react-i18next
import { I18nextProvider, Trans } from "react-i18next"; // ... <Trans i18nKey="myKey" components={{ italic: <i />, bold: <strong /> }} />
It currently throws with:
⨯ TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
This seems to be the proper way to go about it: https://stackoverflow.com/a/78273131
Is it possible to use the
Trans
component fromreact-i18next
for server-side translations?It currently throws with: