How to make titles translatable
Afforms we ship with the extension (or that others package in their extensions) have a title in the .aff.json file. Ideally I think that title should be wrapped in ts()
.
I had a similar problem in the CiviTutorial project and opted to switch from using .json
files to .js
files. I wrote a little encoder/decoder that would wrap/unwrap a whitelist of keys in ts()
. If it's generally useful we could move that code to core and reuse it here.