Socket
Socket
Sign inDemoInstall

i18next

Package Overview
Dependencies
Maintainers
1
Versions
501
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

backends/mongoDb/.npmignore

4

lib/i18next.js

@@ -155,3 +155,3 @@ (function() {

res.send('OK');
res.json('ok');
});

@@ -172,3 +172,3 @@

res.send('OK');
res.json('ok');
});

@@ -175,0 +175,0 @@

@@ -178,3 +178,2 @@ (function() {

self.functions.extend(self.resStore, fetched);
cb(err, self.resStore);

@@ -181,0 +180,0 @@ });

@@ -5,3 +5,3 @@ {

"description": "i18n made easy - full featured: middleware, template support plus clientside use",
"version": "1.3.2",
"version": "1.3.3",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -5,2 +5,59 @@ var express = require('express')

// use mongoDb
// var i18nMongoSync = require('../backends/mongoDb/index');
// i18nMongoSync.connect(function() {
// i18nMongoSync.saveResourceSet('en-US', 'ns.special', {
// resources: {
// "app": {
// "name": "i18n",
// "insert": "you are __youAre__",
// "child": "__count__ child",
// "child_plural": "__count__ children",
// "friend_context": "A friend",
// "friend_context_male": "A boyfriend",
// "friend_context_female": "A girlfriend"
// }
// }
// }, function() {
// i18n.backend(i18nMongoSync);
// i18n.init({
// ns: { namespaces: ['ns.common', 'ns.special'], defaultNs: 'ns.special'},
// resSetPath: 'locales/__lng__/new.__ns__.json',
// saveMissing: true,
// debug: true
// });
// });
// });
// use redis
// var i18nRedisSync = require('../backends/redis/index');
// i18nRedisSync.connect(function() {
// i18nRedisSync.saveResourceSet('en-US', 'ns.special', {
// resources: {
// "app": {
// "name": "i18n",
// "insert": "you are __youAre__",
// "child": "__count__ child",
// "child_plural": "__count__ children",
// "friend_context": "A friend",
// "friend_context_male": "A boyfriend",
// "friend_context_female": "A girlfriend"
// }
// }
// }, function(err) {
// i18n.backend(i18nRedisSync);
// i18n.init({
// ns: { namespaces: ['ns.common', 'ns.special'], defaultNs: 'ns.special'},
// resSetPath: 'locales/__lng__/new.__ns__.json',
// saveMissing: true,
// debug: true
// });
// });
// });
// use filesys
i18n.init({

@@ -7,0 +64,0 @@ ns: { namespaces: ['ns.common', 'ns.special'], defaultNs: 'ns.special'},

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc