From d5a620cf09b835db2bccd99556525c90b458719f Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 5 Aug 2021 17:21:23 +0200 Subject: i18n for 21.08 --- scenario/client.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'scenario') diff --git a/scenario/client.js b/scenario/client.js index 38412c5..68203e3 100644 --- a/scenario/client.js +++ b/scenario/client.js @@ -1,9 +1,9 @@ -function scenar(ns, emote, cb) { - if (!require('@electron/remote').getCurrentWindow().voice) { return; }; - - min = 0; - max = lang.scenario[ns].length - 1; - id = Math.floor(Math.random() * (max - min + 1) + min); - - require('@electron/remote').getCurrentWindow().webContents.send("scenario", {message:lang.scenario[ns][id],lang:lp,namespace:ns,id:id,emote:emote,callback:cb}); -} +function scenar(ns, emote, cb) { + if (!require('@electron/remote').getCurrentWindow().voice) { return; }; + + min = 0; + max = lang.scenario[ns].length - 1; + id = Math.floor(Math.random() * (max - min + 1) + min); + + require('@electron/remote').getCurrentWindow().webContents.send("scenario", {message:lang.scenario[ns][id],lang:lp,namespace:ns,id:id,emote:emote,callback:cb}); +} -- cgit