Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Feb 26, 2025
1 parent 707d5b6 commit 00bdfb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/composables/Lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export function provideLang(lang: Lang) {
}

export function useLang(): Lang {
return inject(SefirotLangKey, 'en')
// Doing `||` check here because for some reason it doesn't return
// the default value in tests but becomes `undefined`.
return inject(SefirotLangKey, 'en') || 'en'
}

export function useBrowserLang(): Lang {
Expand Down

0 comments on commit 00bdfb7

Please sign in to comment.