bagadim / mjml-localise-emails

Full setup to create localized emails with mjml and localise.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

info

Simple way to create emails with mjml template language that you can customize and predefined scripts for localizing those emails using lokalise.io service.

You need lokalise.io project to run it. If you do not use lokalise.io in your project, you will need to replace localization process.

to start

Set LOKALISE_PROJECT_ID in gulpfile.js

$ gulp download-translations --key=<lokalise_token>
$ gulp

prod build

$ gulp prod --key=<lokalise_token>

Output

output_example

other

To start watcher only for mjml transpiling (not very effective as after transpiling templates contain only string keys, but could help to identify issues with mjml traspiling):

$ gulp --mjml

Localization:

$ gulp download-translations --key=<lokalise_token>

About

Full setup to create localized emails with mjml and localise.


Languages

Language:JavaScript 99.5%Language:HTML 0.5%