Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localization in node.js with express

Tags:

Which package do you use for localization with express in node.js?

Thanks!

like image 471
Javier Manzano Avatar asked Jul 25 '12 08:07

Javier Manzano


People also ask

What is Express () in node JS?

Express is a node js web application framework that provides broad features for building web and mobile applications. It is used to build a single page, multipage, and hybrid web application. It's a layer built on the top of the Node js that helps manage servers and routes.

What is the relation between node and Express?

NodeJS is an event-driven, non-blocking I/O model using JavaScript as its main language. It helps to build scalable network applications. Express is a minimal and flexible Node. js web application framework that provides a robust set of features for web and mobile applications.

Can I use Nextjs instead of Express?

Next. js doesn't replace Express and you can use them together. Next. js uses some Node.


2 Answers

node-localize can work together with express.

Depending on where you want the localization, jqtpl-express-i18n can do the job for templating.

like image 115
Ruben Verborgh Avatar answered Nov 09 '22 13:11

Ruben Verborgh


https://github.com/jeresig/i18n-node-2

John Resig's implementation

His blog post on it

http://ejohn.org/blog/i18n-module-for-node-and-express-js/

like image 31
liangzan Avatar answered Nov 09 '22 13:11

liangzan