diff --git a/src/index.js b/src/index.js index 2c067cb..363c58e 100644 --- a/src/index.js +++ b/src/index.js @@ -78,6 +78,7 @@ client.on("room.message", async (roomId, event) => { if (a[0] !== "!start") return; if (a[1] !== "ru" && a[1] !== "en") return; await setUserLanguage(roomId, a[1]); + i18n.locale = a[1] await setUserState(roomId, "country"); await client.sendText(roomId, i18n.t(["setup", "country"]));