Using Language Resources in Message Templates

6 months ago
Hi,
Is it possible to access a pre-defined string value in Message Templates?
Exp:   <h1>%resources:welcome.newyear%</h1>  ==>  <h1>Happy new year</h1>   for example in Email Invoice or whatever

Regrds
6 months ago
You can only use the defined tokens
If you want to create new tokens edit nop42\Libraries\Nop.Services\Messages\MessageTokenProvider.cs
6 months ago
Why do you want to do that? What's the specific problem that you want to solve? :)


6 months ago
wooncherk wrote:
Why do you want to do that? What's the specific problem that you want to solve? :)


I have to use specific texts in invoice which should printed in invoice language
6 months ago
Yidna wrote:
You can only use the defined tokens
If you want to create new tokens edit nop42\Libraries\Nop.Services\Messages\MessageTokenProvider.cs


Worked like a charm 👏👌