I have a handlebars helper which allows me to translate strings into their supported locales:
{{getString "my-translatable-string"}}
function getString(id, args) {
const supportedLocales = getSupportedLocales(args);
return LocaleUtils.fluentFormat(supportedLocales, id, args.hash);
}
I want to pass that value to a handlebars partial
{{> mypartial alt="{{getString "my-translatable-string"}}"}}
but this throws errors. How do I pass/interpolate the result of "getString" into the alt parameter of the partial tag?