Files
Open-Assistant/website/types/i18next.d.ts
T
Adrian Cowan db76b0b1fa website: Use existing translations of language names (#1349)
Removed language.json translation file as we don't really need it anymore, just moved the couple of remaining items into tasks.json

I also reverted the change where I created lang_mismatch_lang and lang_mismatch_lang.explanation because we don't actually need two different strings and it was causing an issue where it would show a mix of english and the users language rather than just show the existing "Wrong language" text that is probably a better intermediate until the translations are updated. Let me know if there is a better way to handle updating the source english text for translations.
2023-02-08 19:43:50 +09:00

26 lines
904 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 side_menu from "public/locales/en/side_menu.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;
side_menu: typeof side_menu;
tos: typeof tos;
};
}
}