# Note: i18nとexport default classの話し
## Why
> > Trying to implement the i18n translation function to the `GridEditModal.jsx` file in the `imprv/change-modal-layout` branch but fails with the `withTranslation` method with errors like:
> > `Invalid Hook Call`

## Solving results
[Reference](https://blog.mitsuto.com/archives/111694)

Using the Translation component and

```
      <Translation>
        {(t) => <p>{t('my_text')}</p>}
      </Translation>
```
to implement the translation function.

---

## Page Navigation

- Canonical URL: https://dev.growi.org/user/guanyu-y/メモ/2020/07/22
- Permalink: https://dev.growi.org/5f180e28b335230048fc0a63
- Parent: [07](/62a71cdeb1519362cc2761fd.md)
- Children: 0 total
- Total descendants: 0
- Siblings: 0 total
- Last updated: 2020-07-22T10:00:38.677Z by guanyu-y
- Full page listing (all children regardless of count): https://dev.growi.org/_api/v3/page-listing/children?id=5f180e28b335230048fc0a63
