summaryrefslogtreecommitdiff
path: root/front/src/Locales/Context.tsx
diff options
context:
space:
mode:
authorphyscik <mynameisgennadiy@vk.com>2026-04-11 16:40:22 +0500
committerphyscik <mynameisgennadiy@vk.com>2026-04-11 16:40:22 +0500
commit5d2c8369389013895264caf16e71d44bddabb22c (patch)
treec4c9556cce9b25d2a852d32f8e2624c2ff19041b /front/src/Locales/Context.tsx
parentae614c0d1174d3b5527f1fb3dc6e339d7ad6a10b (diff)
Language toggle
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");