1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-i18next/components/Post.js
Jesús Lobos b0128c7e2d Fix "with-i18next" example (#4393)
* Fix "with-i18next" example

Fixes #4380

* Trailing space removed
2018-05-16 12:10:01 +02:00

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)