mirror of
https://github.com/HackPlan/next-i18next.git
synced 2026-06-13 00:18:19 +08:00
13 lines
228 B
JavaScript
13 lines
228 B
JavaScript
import React from 'react'
|
|
import { withNamespaces } from '../i18n'
|
|
|
|
class Title extends React.Component {
|
|
render() {
|
|
return (
|
|
<h1>{this.props.t('h1')}</h1>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default withNamespaces('common')(Title)
|