Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Dec 25, 2018
1 parent d627306 commit 6b67324
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
### 13.0.1

- update typedefinitions [1152](https://github.com/i18next/i18next/pull/1152)

### 13.0.0

- pass options to missingInterpolationHandler [1146](https://github.com/i18next/i18next/pull/1146)
Expand Down
2 changes: 1 addition & 1 deletion i18next.js
Expand Up @@ -2020,7 +2020,7 @@ var I18n = function (_EventEmitter) {
});
// Exit early if all given languages are already preloaded
if (!newLngs.length) {
callback();
if (callback) callback();
return Promise.resolve();
}

Expand Down
2 changes: 1 addition & 1 deletion i18next.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "i18next",
"version": "13.0.0",
"version": "13.0.1",
"description": "i18next internationalization framework",
"main": "./index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/i18next.js
Expand Up @@ -297,7 +297,7 @@ class I18n extends EventEmitter {
const newLngs = lngs.filter(lng => preloaded.indexOf(lng) < 0);
// Exit early if all given languages are already preloaded
if (!newLngs.length) {
callback();
if (callback) callback();
return Promise.resolve();
}

Expand Down

0 comments on commit 6b67324

Please sign in to comment.