From 78176be0451c81afeb2dac62500c98a19b617d77 Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 12 Jul 2022 00:48:10 +0600 Subject: [PATCH] im a buffoon this is a blind commit this might as well break everything --- modules/sub/loc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sub/loc.js b/modules/sub/loc.js index a178746..d8dc010 100644 --- a/modules/sub/loc.js +++ b/modules/sub/loc.js @@ -2,7 +2,7 @@ import { supportedLanguages, appName } from "../config.js"; import loadJson from "./load-json.js"; export default function(lang, cat, string, replacement) { - if (!lang in supportedLanguages) { + if (!supportedLanguages.includes(lang)) { lang = 'en' } try { @@ -19,4 +19,4 @@ export default function(lang, cat, string, replacement) { } catch (e) { return string } -} \ No newline at end of file +}