From 5a10ea972540035eb1968468c23509284c42695e Mon Sep 17 00:00:00 2001 From: Gwenillia Date: Sat, 14 Jan 2023 15:09:23 +0100 Subject: [PATCH] set howrse.com to 'en' translation key (other regions uses their .xx top level domain --- translation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/translation.js b/translation.js index ed001af..19e385f 100644 --- a/translation.js +++ b/translation.js @@ -89,6 +89,8 @@ class Translation { const hostname = (new URL(url)).hostname if (hostname.includes('equideow')) { return 'fr' + } else if (hostname.includes('howrse.com')) { + return 'en' } return hostname.match(/\.([^.]+)$/)[1]