i18n for Node + Express

In this post i’m going to demonstrate a simple way to add multi language support to a node + express project. Simple server Lets start with a simple server: We first require express, then we tell express where to look for our templates files. In this case I used ejs as the template engine. I like it because it’s syntax is basically html with special <% ... %> syntax for embedding code from the server. »