Skip to content

Commit

Permalink
use symbol as key
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Feb 26, 2025
1 parent 00bdfb7 commit 4a3ca20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/composables/Lang.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getCurrentInstance, inject } from 'vue'
import { type InjectionKey, getCurrentInstance, inject } from 'vue'

export type Lang = 'en' | 'ja'

Expand All @@ -15,7 +15,7 @@ export interface HasLang {
lang: Lang
}

export const SefirotLangKey = 'sefirot-lang-key'
export const SefirotLangKey: InjectionKey<Lang> = Symbol.for('sefirot-lang-key')

export function useSetupLang(): (user?: HasLang | null) => void {
const browserLang = useBrowserLang()
Expand Down

0 comments on commit 4a3ca20

Please sign in to comment.