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(