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

Using i18next with moment.js #62

Closed
remoe opened this issue Dec 15, 2012 · 1 comment
Closed

Using i18next with moment.js #62

remoe opened this issue Dec 15, 2012 · 1 comment

Comments

@remoe
Copy link

remoe commented Dec 15, 2012

Does anyone know a way to sync the language selection between i18next and moment.js? I mean something like:

app.locals({
  format_date: function(val) {
    moment.lang(i18next.lng());
    return moment(val);
  }
});

Thanks

@remoe
Copy link
Author

remoe commented Dec 15, 2012

moved to i18next/i18next-node#51

@remoe remoe closed this as completed Dec 15, 2012
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

1 participant