From 3794bd5e510b786555df8cf9631a488e30e6db0a Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sat, 20 Apr 2024 17:42:54 +0200 Subject: [PATCH] fixed a typo --- src/i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n.js b/src/i18n.js index fd9c460d..c9b174c3 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -73,7 +73,7 @@ export function currentLocale() { } // some locales are further specified such as "en-US". // If we only have a generic locale for this, we can use it too - const genericLocale = l.split("-")[0]; + const genericLocale = locale.split("-")[0]; if (genericLocale in messages) { return genericLocale; }