smallrecords icon indicating copy to clipboard operation
smallrecords copied to clipboard

CategoryDetail component "translations" array

Open zlobec opened this issue 4 years ago • 1 comments

Hi,

I have two active locales. It seems that the translations object added to categoryDetail adds only the secondary locale (not default) even if the active locale is set as the secondary locale. Shouldn't it output the default locale?

Edit: So this is a live production test: EN locale: https://www.korelic.com/en/tests/spray-booths SL locale: https://www.korelic.com/sl/tests/lakirnice

Or I am somehow understanding the translations object wrong?

zlobec avatar Nov 19 '20 12:11 zlobec

Hi @zlobec,

translation works for me when used like this {{ record.category.name }}.

Translatable fields are:

  • name
  • slug
  • content
  • description

jan-vince avatar Nov 24 '20 16:11 jan-vince