Skip to content

Commit

Permalink
[DE mobile] Added error handler when loading translations
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyEzhin committed Feb 6, 2024
1 parent 9ac2399 commit be7fddf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/documenteditor/mobile/src/lib/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ i18n.use(initReactI18next)
react: {
useSuspense: false,
},
}).then(() => {
console.log("i18next is ready");
})
.catch((error) => {
console.error("i18next initialization error:", error);
});

i18n.on('failedLoading', (lng, ns, msg) => {
console.log(msg);
});

export default i18n;

0 comments on commit be7fddf

Please sign in to comment.