jan-vince / smallrecords

OctoberCMS plugin to store and manage records and lists
MIT License
30 stars 11 forks source link

CategoryDetail component "translations" array #82

Open zlobec opened 3 years ago

zlobec commented 3 years ago

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?

jan-vince commented 3 years ago

Hi @zlobec,

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

Translatable fields are: