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.
This commit is contained in:
Adrian Cowan
2023-02-08 19:43:50 +09:00
committed by GitHub
parent e6b574e177
commit db76b0b1fa
6 changed files with 16 additions and 38 deletions
-2
View File
@@ -2,7 +2,6 @@ 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";
@@ -19,7 +18,6 @@ declare module "i18next" {
tasks: typeof tasks;
message: typeof message;
labelling: typeof labelling;
language: typeof language;
side_menu: typeof side_menu;
tos: typeof tos;
};