Skip to content

Commit

Permalink
solves i18next#320
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Dec 10, 2014
1 parent 7af53d5 commit d1424da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18next.translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ function _find(key, options) {
for (var y = 0, lenY = o.fallbackNS.length; y < lenY; y++) {
found = _find(o.fallbackNS[y] + o.nsseparator + key, options);

if (found) {
if (found || (found==="" && o.fallbackOnEmpty === false)) {
/* compare value without namespace */
var foundValue = found.indexOf(o.nsseparator) > -1 ? found.split(o.nsseparator)[1] : found
, notFoundValue = notFound.indexOf(o.nsseparator) > -1 ? notFound.split(o.nsseparator)[1] : notFound;
Expand Down

0 comments on commit d1424da

Please sign in to comment.