fixed ingoring locale choice in the first message
This commit is contained in:
parent
93f746a766
commit
21731dc0ae
|
@ -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"]));
|
||||
|
||||
|
|
Loading…
Reference in New Issue