fix(i18n): return proper error when language is empty

This commit is contained in:
kolaente 2025-03-02 15:52:28 +01:00
parent 4e93806a44
commit cf2fb3f7f8
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ export const i18n = createI18n({
export async function setLanguage(lang: SupportedLocale): Promise<SupportedLocale | undefined> {
if (!lang) {
throw new Error()
throw new Error('language is empty')
}
// do not change language to the current one