mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-11 00:30:06 +08:00
52af7ba13b
* website: show language in text area When the language hasn't been detected (too little text) the langauge that it will be submitted as is shown. When we detect the language is not what will be submitted we show the detected language in red. The tooltip informs the user that they don't appear to be writing in the correct language. Note: this replaces the modal dialog that we use to popup if the language appeared to differ. * website: Don't suggest the user change the language
28 lines
998 B
TypeScript
28 lines
998 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 language from "public/locales/en/language.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;
|
|
language: typeof language;
|
|
side_menu: typeof side_menu;
|
|
tos: typeof tos;
|
|
};
|
|
}
|
|
}
|