💥 removing language support
This commit is contained in:
parent
873e1227a1
commit
1dddcd0251
4 changed files with 2 additions and 23 deletions
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"test":"test"
|
||||
}
|
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
};
|
|
@ -12,6 +12,7 @@
|
|||
"moduleResolution": "node",
|
||||
"isolatedModules": true,
|
||||
"outDir": "./build",
|
||||
"resolveJsonModule": true,
|
||||
"baseUrl": "./src",
|
||||
"typeRoots": ["/types/common", "./node_modules/@types"],
|
||||
"paths": {
|
||||
|
|
Loading…
Add table
Reference in a new issue