I'm trying to save images in a folder name based on their English slug (or title), to avoid having duplicate folders with titles in different languages.
In Craft 2 I did {{object.locale('en').title|kebab}}
but it seems locale()
no longer works in Craft 3.
I tried variants of {{object.language('en').title|kebab}}
but nothing's working and I'm not sure which way to go.