Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Sep 5, 2018
1 parent 94173ea commit f90d144
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion i18next.js
Expand Up @@ -689,7 +689,12 @@ var Translator = function (_EventEmitter) {
// fallback value
if (!this.isValidLookup(res) && options.defaultValue !== undefined) {
usedDefault = true;
res = options.defaultValue;

if (options.count !== undefined) {
var suffix = this.pluralResolver.getSuffix(lng, options.count);
res = options['defaultValue' + suffix];
}
if (!res) res = options.defaultValue;
}
if (!this.isValidLookup(res)) {
usedKey = true;
Expand Down

0 comments on commit f90d144

Please sign in to comment.