jeresig / i18n-node-2

Lightweight simple translation module for node.js / express.js with dynamic json storage. Uses common __('...') syntax in app and templates.
MIT License
507 stars 79 forks source link

nested objects does not work #76

Closed ersenbasaransen closed 8 years ago

ersenbasaransen commented 8 years ago

From the documentation the following code does not work.

{ 'foo': { 'bar': 'ok' } }

i18n.__('foo.bar');

gregpardo commented 8 years ago

I have this problem also. It basically adds a key 'foo.bar' to the bottom.

EDIT: Decided to go with module 'i18next' instead

gjuchault commented 8 years ago

Hello,

First of all; you may describe a little more your problem and the context : what version do you use, are you in debug mode or not, etc.

I'm guessing you're installing from NPM so the version you have is not up to date (and this is being fixed : https://github.com/jeresig/i18n-node-2/issues/74)

gjuchault commented 8 years ago

See #72