mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
b0128c7e2d
* Fix "with-i18next" example Fixes #4380 * Trailing space removed
17 lines
287 B
JavaScript
17 lines
287 B
JavaScript
import React from 'react'
|
|
import { translate } from 'react-i18next'
|
|
|
|
class Post extends React.Component {
|
|
render () {
|
|
const { t } = this.props
|
|
|
|
return (
|
|
<div>
|
|
{t('namespace1:greatMorning')}
|
|
</div>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default translate(['namespace1'])(Post)
|