Closed explooosion closed 5 years ago
ref: https://react.i18next.com/guides/quick-start
import React from 'react';
// the hoc
import { withTranslation } from 'react-i18next';
function MyComponent ({ t }) {
return <h1>{t('Welcome to React')}</h1>
}
export default withTranslation()(MyComponent);