mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix "with-i18next" example (#4393)
* Fix "with-i18next" example Fixes #4380 * Trailing space removed
This commit is contained in:
parent
59aa5a4dde
commit
b0128c7e2d
|
@ -2,15 +2,12 @@ import React from 'react'
|
|||
import { translate } from 'react-i18next'
|
||||
|
||||
class Post extends React.Component {
|
||||
constructor (props) {
|
||||
super(props)
|
||||
this.t = props.t
|
||||
}
|
||||
|
||||
render () {
|
||||
const { t } = this.props
|
||||
|
||||
return (
|
||||
<div>
|
||||
{this.t('namespace1:greatMorning')}
|
||||
{t('namespace1:greatMorning')}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue