mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-07-22 12:06:11 -05:00
fix(i18n): return proper error when language is empty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user