website: show language in text area (#1296)

* 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
This commit is contained in:
Adrian Cowan
2023-02-07 20:17:53 +09:00
committed by GitHub
parent ab82da7d74
commit 52af7ba13b
4 changed files with 79 additions and 67 deletions
+2
View File
@@ -2,11 +2,13 @@ export const colors = {
light: {
bg: "rgb(250,250,250)",
text: "black",
problem: "#E53E3E",
active: "blue.400",
},
dark: {
bg: "gray.900",
text: "white",
problem: "#FC8181",
active: "blue.500",
},
"dark-blue-btn": {