managerial-maroonM
Refine2y ago
4 replies
managerial-maroon

Breadcrumb i18n

How can I translate part of my breadcrumb to a specific i18n key? I've seen in the code that breadcrumb searches for the i18n key the following way:
tsx 
pickNotDeprecated(
  parentResource.meta?.label,
      parentResource.options?.label,
  ) ??
  translate(`${parentResource.name}.${parentResource.name}`,
    textTransformers.humanize(parentResource.name),
  ),


What do I need to add to my i18n config file to provide a custom translation for an action in a resource?

In my case, I want to translate 'Editar' to 'Detalhes' only for the 'Loja' resource.
Was this page helpful?