Custom component internationalization
AdminJS can be used in multiple languages as described in this tutorial. Creating an international version of our custom components is also possible.
Assume we have created a custom React component as described here. We can utilize a generic AdminJS hook called useTranslations.
We should also add translations to the component's namespace in our locale config to make this work.
If we would like to create custom messages to be handled by useNotice hook we have to add our component section to the messages namespace.
Usage:
Last updated