mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Default to browser language
This commit is contained in:
6 files changed
+19
-12
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user