I'm new to Node.js and I'm trying to learn how to use i18n in my Pug template and could not find my answer anywhere.
The documentation says
in your templates (depending on your template engine)
<%= __('Hello') %>
${__('Hello')}
So far I tried (in my pug template)
${__('Hello')}
__('Hello')
None of those syntax is working, what is the correct one to use ?
I know it is well configure because when using
i18n.__('Hello')
And sending it to my template in a variable it is working.