feat: add i18n infrastructure and language selector
Co-authored-by: Wikid82 <176516789+Wikid82@users.noreply.github.com>
This commit is contained in:
10
frontend/src/context/LanguageContextValue.ts
Normal file
10
frontend/src/context/LanguageContextValue.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createContext } from 'react'
|
||||
|
||||
export type Language = 'en' | 'es' | 'fr' | 'de' | 'zh'
|
||||
|
||||
export interface LanguageContextType {
|
||||
language: Language
|
||||
setLanguage: (lang: Language) => void
|
||||
}
|
||||
|
||||
export const LanguageContext = createContext<LanguageContextType | undefined>(undefined)
|
||||
Reference in New Issue
Block a user