Skip to content

Use route as html content #9

Answered by aymanizz
Tarassin asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Tarassin,

Sorry for the late reply. Are you using a particular templating engine for rendering the page? An adhoc way would be to pass the call as a parameter when rendering (any engine will support some form of template parameter passing) then in your template you could use it to translate your resources call.t(R("greeting")).

If the engine you're using is extensible, it should also be possible abstract this and instead use a special construct like a tag or something else for translation, something along the lines of what you have in mind (p{ +/greetings}).

Let me know if this helps.

Cheers.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aymanizz
Comment options

Answer selected by aymanizz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants