mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
cc3891ed12
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.
24 lines
806 B
TypeScript
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;
|
|
};
|
|
}
|
|
}
|