From cf2fb3f7f8fdb6cbb8ea9737c940110a18146ced Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 2 Mar 2025 15:52:28 +0100 Subject: [PATCH] fix(i18n): return proper error when language is empty --- frontend/src/i18n/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index b2f8a37a5..11144aa26 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -76,7 +76,7 @@ export const i18n = createI18n({ export async function setLanguage(lang: SupportedLocale): Promise { if (!lang) { - throw new Error() + throw new Error('language is empty') } // do not change language to the current one