I have been trying to add preact-i18n to my project by it does not seem to want to display its children:
import { createStore, applyMiddleware } from "redux";
import { Provider } from "react-redux";
import thunk from "redux-thunk";
// import ConnectedIntlProvider from "./utils/connected-intl-provider";
import { IntlProvider } from "preact-i18n";
// import App from "./components/app";
import rootReducer from "./reducers/rootReducer";
import "./style.css";
import definition from "./translations/ro.json";
export default () => (
<Provider store={createStore(rootReducer, applyMiddleware(thunk))}>
{/* <ConnectedIntlProvider> */}
<IntlProvider definition={definition}>
{/* <App /> */}
<div>TEST</div>
</IntlProvider>
{/* </ConnectedIntlProvider> */}
</Provider>
);
If I inspect the page... there is not div containing TEST inside body... if I just set TEST inside it, it renders the first T. Do I need to do any extra setup?
I have been trying to add preact-i18n to my project by it does not seem to want to display its children:
If I inspect the page... there is not div containing TEST inside body... if I just set TEST inside it, it renders the first T. Do I need to do any extra setup?