Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Introduce a useTranslation hook
Provide a possibility to migrate our translation mechanism to react-i18n by introducing a similar useTranslation hook. When we started developing GSA hooks didn't exist and react-i18n including its translation mechanisms were not easy to use. Therefore I've implemented our own abstraction on top of i18next directly. With react hooks react-i18n become much easier to use and we should migrate to it at the end. To allow for an easy migration introduce a similar useTranslation hook as react-i18n that wraps our current translation code.
- Loading branch information