mirror of
https://github.com/HackPlan/next-i18next.git
synced 2026-01-12 22:44:29 +08:00
17 lines
343 B
JavaScript
17 lines
343 B
JavaScript
import React from 'react'
|
|
import App, { Container } from 'next/app'
|
|
import { appWithTranslation } from '../i18n'
|
|
|
|
class MyApp extends App {
|
|
render () {
|
|
const { Component, pageProps } = this.props
|
|
return (
|
|
<Container>
|
|
<Component {...pageProps} />
|
|
</Container>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default appWithTranslation(MyApp)
|