fix(i18n): return proper error when language is empty
This commit is contained in:
parent
4e93806a44
commit
cf2fb3f7f8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue