From 21731dc0aecb4eb898bf0eef67d6565eb0d96ef1 Mon Sep 17 00:00:00 2001 From: leca Date: Thu, 8 Aug 2024 22:00:16 +0300 Subject: [PATCH] fixed ingoring locale choice in the first message --- src/index.js | 1 + 1 file changed, 1 insertion(+) 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"]));