Default to browser language

This commit is contained in:
Alex Gleason committed 2025-09-19 14:47:14 -05:00
1 parent 350f3b3c5e
commit 4ad3c7367d
6 files changed
+19 -12

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
import { createContext } from "react";
export type Theme = "dark" | "light" | "system";
export type Language = "en" | "pt" | "zh";
export interface AppConfig {
/** Current theme */
@@ -11,7 +10,7 @@ export interface AppConfig {
/** Deploy server domain (e.g., "shakespeare.wtf") */
deployServer: string;
/** Selected language */
language: Language;
language?: string;
}
export interface AppContextType {