Skip to content

Commit

Permalink
updated client to prerelease version
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed May 17, 2013
1 parent a2c174c commit 9180184
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 42 deletions.
5 changes: 0 additions & 5 deletions lib/dep/i18next-1.6.2.min.js

This file was deleted.

8 changes: 4 additions & 4 deletions lib/dep/i18next-1.6.2.js → lib/dep/i18next-1.6.3_pre.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// i18next, v1.6.2
// i18next, v1.6.3_pre
// Copyright (c)2013 Jan Mühlemann (jamuhl).
// Distributed under MIT license
// http://i18next.com
Expand Down Expand Up @@ -1088,7 +1088,7 @@
}
}

if (found === undefined && !options.isFallbackLookup && (o.fallbackToDefaultNS === true || (o.fallbackNS && o.fallbackNS.length))) {
if (found === undefined && !options.isFallbackLookup && (o.fallbackToDefaultNS === true || (o.fallbackNS && o.fallbackNS.length > 0))) {
// set flag for fallback lookup - avoid recursion
options.isFallbackLookup = true;

Expand Down Expand Up @@ -1297,9 +1297,9 @@

var urls = [];

if (o.sendMissingTo === 'fallback') {
if (o.sendMissingTo === 'fallback' && o.fallbackLng !== false) {
urls.push({lng: o.fallbackLng, url: applyReplacement(o.resPostPath, { lng: o.fallbackLng, ns: ns })});
} else if (o.sendMissingTo === 'current') {
} else if (o.sendMissingTo === 'current' || (o.sendMissingTo === 'fallback' && o.fallbackLng === false) ) {
urls.push({lng: lng, url: applyReplacement(o.resPostPath, { lng: lng, ns: ns })});
} else if (o.sendMissingTo === 'all') {
for (var i = 0, l = lngs.length; i < l; i++) {
Expand Down
5 changes: 5 additions & 0 deletions lib/dep/i18next-1.6.3_pre.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/i18nextWrapper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function() {

// when updating dep/i18next.xx.js update version here
var i18nVersion = '1.6.2';
var i18nVersion = '1.6.3_pre';

var i18n = require('./dep/i18next-' + i18nVersion)
, url = require('url')
Expand Down
18 changes: 0 additions & 18 deletions sample/locales/de-DE/new.ns.special.json

This file was deleted.

13 changes: 0 additions & 13 deletions sample/locales/en-US/new.ns.special.json

This file was deleted.

2 changes: 1 addition & 1 deletion sample/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ i18n.init({
resSetPath: 'locales/__lng__/new.__ns__.json',
saveMissing: true,
debug: true,
sendMissingTo: 'all'
sendMissingTo: 'fallback'
});

// Configuration
Expand Down

0 comments on commit 9180184

Please sign in to comment.