Skip to content
Permalink
Browse files

fix(setup): adjust i18next init; skip 404 errors

* use the init method as intended (promise)
* do not reject on 404 errors raised by the backend

related issue #295
  • Loading branch information...
zewa666 committed Mar 28, 2019
1 parent c802b25 commit d2256b952060698a0f135333359f8f1002eba093
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/i18n.ts
@@ -49,8 +49,8 @@ export class I18N {
};

this.i18nextDeferred = new Promise((resolve, reject) => {
this.i18next = this.i18next.createInstance(options || defaultOptions, (err) => {
if (err) {
this.i18next.init(options || defaultOptions, (err) => {
if (err && !Array.isArray(err)) {
reject(err);
}

0 comments on commit d2256b9

Please sign in to comment.
You can’t perform that action at this time.