nextjs-breadcrumbs icon indicating copy to clipboard operation
nextjs-breadcrumbs copied to clipboard

i18n - nextjs breadcrumbs

Open leGenti opened this issue 4 years ago • 2 comments

Hi everyone

I'm using next internationalization (multilanguage), is there any way I can change breadcrumbs dynamically? I've tried transformLabel={(title) => title + {t('custom-label')}, but the outcome is: Home 'custom label' - Kunst 'custom-label'.

Is there any other way to fix this?

Thanks in advance.

Gentian

leGenti avatar Nov 10 '21 11:11 leGenti

@leGenti Something more like this? transformLabel={(title) => t(title)}

tzarger avatar Nov 19 '21 07:11 tzarger

I would be happy to see a follow-up to this conversation. I have the identical problem in that I have to translate the breadcrumb. To be honest, I have no idea what the ideal way to localize a URL is. Whether I translate it to the URL itself straight away or not.

bwcr avatar Mar 04 '24 09:03 bwcr