first commit

This commit is contained in:
“dongming”
2026-01-21 16:08:49 +08:00
commit ea72dd0c3c
57 changed files with 11884 additions and 0 deletions

10
src/i18n/context.ts Normal file
View File

@@ -0,0 +1,10 @@
import { createContext } from 'react'
import type { Locale } from './translations'
export type I18nContextValue = {
locale: Locale
setLocale: (locale: Locale) => void
t: (key: string) => string
}
export const I18nContext = createContext<I18nContextValue | null>(null)