WATranslate v2.3 — Four-language routing (TEST)

SUPPORTED CUSTOMER LANGUAGES
- German
- Russian
- English
- Spanish

BEHAVIOUR
1. Incoming text is locally language-detected.
2. Incoming DE / EN / ES is translated to Russian for the agent.
3. Incoming Russian remains Russian.
4. When replying, WATranslate examines the customer's latest incoming message.
5. The agent reply is translated back to that detected customer language.
6. The outgoing preview remains editable and manual-send only.

IMPORTANT
This is heuristic language detection suitable for the current TEST project.
Short/ambiguous messages can be detected incorrectly. Do not treat it as final
production-grade language identification.

INSTALL
Before installing, make a backup of the currently working test version.

Extract this ZIP directly into:
public_html/whatsapp-server-translator/

Overwrite existing files.

Files:
src/LanguageDetector.php
src/bootstrap.php
public/webhook.php
public/api.php
public/index.php
assets/app.js
public/assets/app.js

CSS:
The ZIP includes app-v2.3-extra.css only as the optional new language-label rule.
Append its contents to BOTH existing app.css files if you want the small language
label styling:
assets/app.css
public/assets/app.css

The application works without that extra CSS; the label will simply inherit
normal styling.

After installation:
1. Cmd + Shift + R
2. Test one German incoming message
3. Test one English incoming message
4. Test one Spanish incoming message
5. Test one Russian incoming message
6. For each conversation, reply in Russian and confirm the preview uses the
   customer's language.

Existing historical rows keep their old stored language values. New incoming
messages will use the detector.
