Skip to content
Snippets Groups Projects
Commit b5f894f9 authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Missing english

Change-Id: I6d00f72189c047e2594596e4d230c9c67fb53e58
parent a9e60d2a
No related branches found
No related tags found
No related merge requests found
......@@ -13,14 +13,14 @@ import { useTranslation } from "react-i18next";
export default function LanguagePicker(props) {
const history = useHistory();
const [language, setLanguage] = React.useState(i18next.language || window.localStorage.i18nextLng || "en");
const [languages, setLanguages] = React.useState([{ "code": "en", "name": "English"}]);
const [languages, setLanguages] = React.useState([]);
const { i18n } = useTranslation();
useEffect(() => {
fetch("/available_languages.json").then(res => res.json()).then((result) => {
const response = result.languages;
let translates_languages = [];
let translates_languages = [{ "code": "en", "name": "English"}];
response.forEach((lang) =>
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment