Commit 069fbdc4 authored by BBeretta's avatar BBeretta

fix: imports sorted

parent 75b8dbfd
Pipeline #27124 failed with stages
in 12 minutes and 36 seconds
import React, { createContext, useState, useContext } from "react";
import React, { createContext, useContext, useState } from "react";
interface LanguageContextType {
language: string;
......
......@@ -2,7 +2,7 @@ import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
const LanguageSelector: React.FC = () => {
const { t, i18n } = useTranslation();
const { i18n } = useTranslation();
const onClickLanguageChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
const language = e.target.value;
......
import i18next from "i18next";
import { initReactI18next } from "react-i18next";
import translationBrazilian from "./Translation/Brazilian/translation.json";
import translationChinese from "./Translation/Chinese/translation.json";
//Import all translation files
import translationEnglish from "./Translation/English/translation.json";
import translationSpanish from "./Translation/Spanish/translation.json";
import translationFrench from "./Translation/French/translation.json";
import translationChinese from "./Translation/Chinese/translation.json";
import translationJapanese from "./Translation/Japanese/translation.json";
import translationBrazilian from "./Translation/Brazilian/translation.json";
import translationPortuguese from "./Translation/Portuguese/translation.json";
import translationSpanish from "./Translation/Spanish/translation.json";
//---Using translation
// const resources = {
......
......@@ -18,6 +18,7 @@ import "u-reset.css";
import "overlayscrollbars/overlayscrollbars.css";
import "@/styles/core.scss";
import "@/styles/inject.scss";
import "./i18n";
import { ProConfigProvider } from "@ant-design/pro-provider";
import { App, ConfigProvider } from "antd";
......@@ -27,11 +28,8 @@ import ReactDOM from "react-dom/client";
import { theme } from "@/ui/theme";
import { NeosRouter } from "./ui/NeosRouter";
import "./i18n";
import { LanguageProvider } from "./Language/LanguageContext";
import { NeosRouter } from "./ui/NeosRouter";
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement,
......
import { Avatar, Dropdown } from "antd";
import classNames from "classnames";
import React, { useEffect } from "react";
import { useTranslation } from "react-i18next";
import {
type LoaderFunction,
NavLink,
......@@ -16,6 +17,7 @@ import {
removeCookie,
} from "@/api";
import { useConfig } from "@/config";
import LanguageSelector from "@/Language/LanguageSelector";
import { accountStore } from "@/stores";
import styles from "./index.module.scss";
......@@ -30,9 +32,6 @@ import {
initWASM,
} from "./utils";
import { useTranslation } from "react-i18next";
import LanguageSelector from "@/Language/LanguageSelector";
const NeosConfig = useConfig();
export const loader: LoaderFunction = async () => {
......
import { RightOutlined } from "@ant-design/icons";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
import { useSnapshot } from "valtio";
......@@ -8,7 +9,6 @@ import { accountStore } from "@/stores";
import { Background, SpecialButton } from "@/ui/Shared";
import styles from "./index.module.scss";
import { useTranslation } from "react-i18next";
const NeosConfig = useConfig();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment