XF 2.1 Data passed via phrase isn't reflecting in template

asprin

Active member
Licensed customer
I've the following written inside a template
HTML:
<h3 class="contentRow-title">           
    {{ phrase('asprin_usernamechange_change_detail',{'new_username':'abc'}) }}                                   
</h3>


This the phrase
1590939046135.webp


And this is how it gets displayed on the page
1590939087526.webp

It loops 3 times as the table has 3 records. So that's fine. But why isn't the data being passed onto the phrase text? It must be something trivial that I'm not seeing at present 🤦‍♂️
 
remove the $ eg... {new_username}

I can't believe I was this dumb :notworthy:

I referred to core phrases and picked up the syntax from there but didn't realize how insanely silly it was to not notice the $sign
 
  • Like
Reactions: Bob
Back
Top Bottom