💥 removing language support

This commit is contained in:
Axel Olausson Holtenäs 2022-04-30 15:31:22 +02:00
parent 873e1227a1
commit 1dddcd0251
No known key found for this signature in database
GPG key ID: 7BF6826B76382CBA
4 changed files with 2 additions and 23 deletions

View file

@ -1,3 +0,0 @@
{
"test":"test"
}

View file

@ -38,6 +38,7 @@
"discord.js": "^13.6.0",
"i18next": "^21.6.13",
"i18next-async-backend": "^2.0.0",
"i18next-http-backend": "^1.4.0",
"i18next-resources-to-backend": "^1.0.0",
"mongoose": "^6.2.3",
"node-schedule": "^2.1.0",

View file

@ -1,20 +0,0 @@
import i18next from "i18next";
import AsyncBackend from "i18next-async-backend";
import logger from "@logger";
const resources = {
en: {
errors: () => import("@root/lang/en/errors.json"),
plugins: () => import("@root/lang/en/plugins.json"),
},
};
export default async () => {
await i18next.use(AsyncBackend).init({
backend: { resources },
});
//i18next now can be used to translate your application
logger.silly(i18next.store.data);
};

View file

@ -12,6 +12,7 @@
"moduleResolution": "node",
"isolatedModules": true,
"outDir": "./build",
"resolveJsonModule": true,
"baseUrl": "./src",
"typeRoots": ["/types/common", "./node_modules/@types"],
"paths": {