A little help understanding placeholders in translation

Hi,
I don’t understand how to use placeholders. If I want to translate the following line :
<a href...>More of {{name}}'s articles<a>

Should I encapsulate as follows ?
<a href...>{{t "More of {name}'s articles"}}<a>

And the use {name} in the json file ?
Thanks

Not quite. It’ll be:

{{t "More of {name}'s articles" name=name }}

See the placeholders section for more examples: Ghost Handlebars Theme Helpers: translate

Your json files will have:

"More of {name}'s articles":  "Plus d'articles par {name}"

Thank you really much !

1 Like