What setup do you use for localization in your nodejs/express app?
Right now I'm using i18n-node in my project. But I'm not happy with the storage in the json files. I'd like to have the translations stored in a database.
I found a promising module named dialect. It can store the translations in mongodb and there's also a module from the same author which enables you to manage the translations via a webinterface(dialect-http).
Unfortunately the dialect module doesn't seem to work with latest stable versions of node. The problem is known for 2 months but since nothing was updated since then I guess the module isn't actively maintained anymore.
I think using a redis db for storing the translations would also make sense. I don't know if there's an module for that.
Maybe you guys have some hints or know of any good modules?
Why don't you just fork i18n-node and overwrite the read and write functions with your own persistence mechanism?
https://github.com/mashpie/i18n-node/blob/master/i18n.js#L235
It seems like you could easily persist the json data within a redis key instead of a json file with a few changes.
I could suggest you to use lingua. Here an example =) http://www.jmanzano.es/blog/?p=647
Another option to lingua might be http://i18next.com/node comes with backends in redis, mongodb or couchDb (and Filesystem of course!)