I'm trying to translate the labels for a global checkbox field in my front-end templates like in this post: Is there a way to have checkbox field labels translatable?. This looked promising but I can't seem to get it working (maybe it's Craft2 and things have changed in 3)
Basically it's using namespacing in the translations file e.g for a French translation file
return [
'field.fruits.option.apple.label' => 'pomme',
'field.fruits.option.lemon.label' => 'citron',
];
But no translations showing in the template when I try
{% for fruit in myGlobalSet.fruits %}
{{ fruit.label|t }}
{% endfor %}
Any ideas? I'm sure it must be syntax related or wrong namespacing but I'm not getting any errors.





