summaryrefslogtreecommitdiff
path: root/front/src/Locales/Context.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'front/src/Locales/Context.tsx')
-rw-r--r--front/src/Locales/Context.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/front/src/Locales/Context.tsx b/front/src/Locales/Context.tsx
new file mode 100644
index 0000000..a15d57d
--- /dev/null
+++ b/front/src/Locales/Context.tsx
@@ -0,0 +1,5 @@
+import { createContext } from "react";
+
+export type AllowedLanguages = "en" | "ru";
+
+export const LanguageContext = createContext<AllowedLanguages>("en");