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