Files
Richard Macarthy cc3891ed12 Fix hydration issues side menu, move side_menu.json to common.json (#1327)
Fixes #1326

This PR moves all json in side_menu.json to common.json. We have an issue with the side menu layout as it's a high level component and this causes hydration issues with SSR when global namespaces are not passed by default.
2023-02-09 11:45:03 +09:00

24 lines
806 B
TypeScript

import type common from "public/locales/en/common.json";
import type dashboard from "public/locales/en/dashboard.json";
import type index from "public/locales/en/index.json";
import type labelling from "public/locales/en/labelling.json";
import type leaderboard from "public/locales/en/leaderboard.json";
import type message from "public/locales/en/message.json";
import type tasks from "public/locales/en/tasks.json";
import type tos from "public/locales/en/tos.json";
declare module "i18next" {
interface CustomTypeOptions {
resources: {
common: typeof common;
dashboard: typeof dashboard;
index: typeof index;
leaderboard: typeof leaderboard;
tasks: typeof tasks;
message: typeof message;
labelling: typeof labelling;
tos: typeof tos;
};
}
}