diff --git a/src/App.js b/src/App.js
index cc437cb..7eccc7a 100644
--- a/src/App.js
+++ b/src/App.js
@@ -60,14 +60,9 @@ export function Loading() {
}
export default function App() {
- /*const [notificationApi, notificationContextHolder] =
- notification.useNotification();
- */
const { _, i18n } = useTranslation();
const { userSession, setUserSession } = UseUserSession();
- //const [isWebSocketReady, setIsWebSocketReady] = useState(false);
-
const [appUserData, setAppUserData] = useState(null);
useEffect(() => {
@@ -135,72 +130,3 @@ export default function App() {
);
}
-
-/*
-
-
-
-
-
-*/
-
-/*
-const ReconnectingView = ({ isWebSocketReady }) => {
- return (
-
-
-
-
- Connecting...
-
-
-
- );
-}; */
-
-// TODO: Undo this
-/*
-
- J A N N E X
-
-*/
diff --git a/src/Pages/Login/index.js b/src/Pages/Login/index.js
index f730a56..2971e9b 100644
--- a/src/Pages/Login/index.js
+++ b/src/Pages/Login/index.js
@@ -16,7 +16,7 @@ import { useTranslation } from "react-i18next";
import MyAppLogo from "../../Components/MyAppLogo";
export default function Login() {
- const { t } = useTranslation();
+ const { t, i18n } = useTranslation();
const [form] = Form.useForm();
const [notificationApi, notificationContextHolder] =
@@ -62,6 +62,7 @@ export default function Login() {
if (selectedMethod === "2") {
body.username = values.username;
+ body.language = i18n.language;
}
myFetch({
diff --git a/src/Pages/Store/Employees/index.js b/src/Pages/Store/Employees/index.js
index d5fc4ae..775421f 100644
--- a/src/Pages/Store/Employees/index.js
+++ b/src/Pages/Store/Employees/index.js
@@ -201,7 +201,7 @@ function ModalAddEditEmployee({
setModalOptions,
fetchEmployees,
}) {
- const { t } = useTranslation();
+ const { t, i18n } = useTranslation();
const [notificationApi, notificationContextHolder] =
notification.useNotification();
const { storeId } = useParams();
@@ -283,6 +283,7 @@ function ModalAddEditEmployee({
username: values.username,
accountName: values.accountName,
password: EncodeStringToBase64(values.password),
+ language: i18n.language,
};
if (