The online demo webpage needs to be updated.
Requirements:
should have a header
should have a text area
should have button "Get language" which identifies the language of the text in the text area (POST to a remote API).
(nice to have) if 3 seconds have passed after the last time the user has finished typing the last character and if this text has not been sent to the identification API yet, then start the identification process automatically (send to the API and update the status accordingly).
the visual effect of the automatic identification is the same as when hitting the button.
should have a status label:
it is blank at the start
when the identification process has started, it shows "Identifying the language of the text...".
(nice to have) the label would shows a spinner ("washing machine") icon which indicates the request is in progress.
when there is a result, it says "The language of the text is eng" (or another 3-letter code).
when there is an error, it renders the text of the error from the JSON in red.
The online demo webpage needs to be updated. Requirements: