Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

i18next improvements

Blue Mouse1d203eb2f809
diff --git a/src/i18next.js b/src/i18next.js
index edef4abf9..019c61d0d 100644
--- a/src/i18next.js
+++ b/src/i18next.js
@@ -27,6 +27,13 @@ i18next
interpolation: {
escapeValue: false,
},
+ fallbackLng: 'en',
+ parseMissingKeyHandler: (key) => {
+ if (i18next.isInitialized) {
+ console.warn(`Missing translation for ${key}`)
+ }
+ return key
+ },
whitelist,
resources: {
en: { common: en },