Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saveMissing not working with version 1.7.8 but work with 1.7.4 #165

Closed
chesnel opened this issue Jan 6, 2015 · 2 comments
Closed

saveMissing not working with version 1.7.8 but work with 1.7.4 #165

chesnel opened this issue Jan 6, 2015 · 2 comments

Comments

@chesnel
Copy link

chesnel commented Jan 6, 2015

Hello,
I made a basic test with saveMissing and unfortunately is not working with the last version 1.7.8 in npm. I downgrade the version like this npm install i18next@1.7.4 and now my example works perfectly with the option saveMissing : true.

Is that something changed with the 1.7.8 version and I do not declare it right my options?

var i18n = require('i18next');

var option = { 
  resSetPath: 'locales/__lng__/__ns__.json',
  resGetPath : 'locales/__lng__/__ns__.json',
  saveMissing : true,
  lng : 'en',
  preload : ['en'],
  fallbackLng : 'en',
  debug :true,
  sendMissingTo: 'all'
};

i18n.init(option, function(){
  console.log(i18n.t('patate douce'));
});

thank you in advance

jamuhl added a commit that referenced this issue Jan 7, 2015
@jamuhl
Copy link
Member

jamuhl commented Jan 7, 2015

your configuration is correct. there's a bug i introduced on 1.7.8. will be fixed in 2fcc5ee

will publish an updated version asap.

@jamuhl
Copy link
Member

jamuhl commented Jan 13, 2015

fixed in published v1.7.9

@jamuhl jamuhl closed this as completed Jan 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants