aboutsummaryrefslogtreecommitdiff
path: root/bot/src/utils/i18n.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/utils/i18n.js')
-rw-r--r--bot/src/utils/i18n.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/bot/src/utils/i18n.js b/bot/src/utils/i18n.js
index 2b4a4be..9b03994 100644
--- a/bot/src/utils/i18n.js
+++ b/bot/src/utils/i18n.js
@@ -1 +1,11 @@
-// Feature for AleeBot 4.1
+import i18next from 'i18next';
+import fsBackend from 'i18next-fs-backend';
+const fallbackLanguage = 'en';
+
+i18next.use(fsBackend).init({
+ debug: true,
+ fallbackLng: fallbackLanguage,
+ backend: {
+ loadPath: './src/translations/{{lng}}/{{ns}}.json'
+ }
+});