rsnext/examples/with-i18n-rosetta/pages/_app.js
TodorTotev 7cf3c3d28d
Feat/remove redundant imports from examples (#13062)
The issue is related to [12964](https://github.com/zeit/next.js/issues/12964)

Let me know if there are any changes you want me to make.

Affected examples:

**with-glamor
with-graphql-hooks
with-graphql-react
with-grommet
with-http2
with-jest
with-cookie-auth-fauna
with-context-api
with-cerebral
with-aphrodite
with-apollo-and-redux
basic-css
with-carbon-components
amp-first**

I would love to help more, so let me know if there is anything specific I can contribute to.
2020-05-20 17:50:03 +00:00

9 lines
216 B
JavaScript

import I18n from '../lib/i18n'
export default function MyApp({ Component, pageProps }) {
return (
<I18n lngDict={pageProps.lngDict} locale={pageProps.lng}>
<Component {...pageProps} />
</I18n>
)
}