mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 17:43:03 +03:00
d2b4ef4aff
* ✨ get all knowledge utils * ✨ add remove knowledge and update router * ✨ new knowledge provider * 🚨 remove eslint -disable * ✨ new useKnowledgeApi * ✨ set up KnowledgeItem * ✨ add KnowledgeTable component in knowledge tab * 🔥 remove DocumentData replaced by KnowledgeItem * 🐛 fix weird characters instead of '/' * 💄 truncate knowledge name * ✨ add DownloadUploadedKnowledge component * ⚰️ unused code * 🏷️ introduce UploadedKnowledge and CrawledKnowledge types * 💄 remove thread * 💄 bin for delete knowledge * 🌐 update wording for knowledge tab * 🔇 remove logs and comments
21 lines
507 B
TypeScript
21 lines
507 B
TypeScript
/* eslint-disable import/no-named-as-default-member */
|
|
/* eslint-disable @typescript-eslint/no-floating-promises */
|
|
// import the original type declarations
|
|
import i18n from "i18next";
|
|
import { initReactI18next } from "react-i18next";
|
|
|
|
import { resources } from "./resources";
|
|
|
|
const defaultNS = "translation";
|
|
|
|
i18n.use(initReactI18next).init({
|
|
lng: "en",
|
|
fallbackLng: "en",
|
|
defaultNS,
|
|
resources,
|
|
debug: process.env.NEXT_PUBLIC_ENV !== "prod",
|
|
interpolation: {
|
|
escapeValue: false,
|
|
},
|
|
});
|