From 7b871777347496e7d4cef103b8f63eaa2caa94d4 Mon Sep 17 00:00:00 2001 From: Zohan Subhash Date: Wed, 1 Mar 2023 13:03:38 +0530 Subject: [PATCH] Update top-langs.js --- api/top-langs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/top-langs.js b/api/top-langs.js index e67d9533..910473ac 100644 --- a/api/top-langs.js +++ b/api/top-langs.js @@ -41,6 +41,8 @@ export default async (req, res) => { if (locale && !isLocaleAvailable(locale)) { return res.send(renderError("Something went wrong", "Locale not found")); } + + theme = theme.replace(/-/g, "_") try { const topLangs = await fetchTopLanguages(