Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
The example for i18n in the readme file is confusing:
p= t(`Hi ${name},`)
At first I thought I could use a string with a variable placeholder in my json locale file, but then I realized the example uses backticks and the name becomes part of the key.
Nobody is going to translate the same piece of text using different names. The name should not be part of the key, unless it's replaced by a placeholder name.
It is a confusing example and not what one would expect having used other tools.
The example for i18n in the readme file is confusing:
At first I thought I could use a string with a variable placeholder in my json locale file, but then I realized the example uses backticks and the name becomes part of the key.
Nobody is going to translate the same piece of text using different names. The name should not be part of the key, unless it's replaced by a placeholder name.
It is a confusing example and not what one would expect having used other tools.
A more realistic example would be: