Toster translations
hi i'd love to create translations for notifications and all other default refine text
but i cant find keys that i need to set in my i18n resources
5 Replies
Hi @danyalutsevich. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To create translations for notifications and other default Refine text, you need to set the appropriate keys in your i18n resources. Here are the steps and the keys you need to include in your translation files:
Notification Keys
Refine uses specific keys for notifications, which you can override in your
i18n
provider. Here are the keys you need to include in your translation files:
Source (https://refine.dev/docs/guides-concepts/notifications/#notification-providers)
Other Default Text Keys
For other default texts, such as those used in login, registration, and password update pages, you can use the following keys:
Source (https://refine.dev/docs/i18n/i18n-provider/#translation-file)
Setting Up the i18n Provider
To use these translations, you need to set up an i18nProvider
and pass it to the <Refine />
component. Here is an example of how to set up the i18nProvider
:
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@447478993101389824> kapa.ai is still learning and improving, please let us know how it did by reacting below
fair-roseOP•4mo ago
@kapa.ai how can i send a link to this message
Let me check the knowledge base for you. One moment! :books:
----------------------
To send a link to a message in Refine, you can use the
notificationProvider
to open a notification with a link. Here is an example of how you can set up a notificationProvider
using react-toastify
to include a link in the message:
In this example, the message
property can include HTML, allowing you to embed a link directly in the notification message.
For more details on setting up a notificationProvider
, you can refer to the Refine documentation on Notification Provider (https://refine.dev/docs/notification/notification-provider/#open).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@447478993101389824> kapa.ai is still learning and improving, please let us know how it did by reacting below