Using Language Resources in Message Templates

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years 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
4 years ago
You can only use the defined tokens
If you want to create new tokens edit nop42\Libraries\Nop.Services\Messages\MessageTokenProvider.cs
4 years ago
Why do you want to do that? What's the specific problem that you want to solve? :)


4 years 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
4 years 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 👏👌
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.