summaryrefslogtreecommitdiff
path: root/front/src/Emelents/IndexElement.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'front/src/Emelents/IndexElement.tsx')
-rw-r--r--front/src/Emelents/IndexElement.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/front/src/Emelents/IndexElement.tsx b/front/src/Emelents/IndexElement.tsx
index 9914e89..2209fe1 100644
--- a/front/src/Emelents/IndexElement.tsx
+++ b/front/src/Emelents/IndexElement.tsx
@@ -1,11 +1,13 @@
-import { useState } from "react";
-import { GetString } from "../Locales/Locales";
+import { useContext, useState } from "react";
+import { LanguageContext } from "../Locales/Context";
+import { GetLocalizedString } from "../Locales/Locales";
function IndexElement() {
- const [lang, setLang] = useState('en');
+ var lang = useContext(LanguageContext);
+
return (
<div>
- <h1> {GetString("index", lang)} </h1>
+ <h1> {GetLocalizedString("index", lang)} </h1>
</div>
);
}