WATranslate v4.4 — Interface Language Switch

DEFAULT
English is the initial/default agent interface language.

AVAILABLE UI LANGUAGES
- English
- Русский
- Deutsch
- Español

HOW THE SWITCH WORKS
Mobile / iPhone:
- EN / RU / DE / ES selector is always visible in the Chats header next to the three-dot menu.
- Change it at any time; the interface updates immediately without reloading.

Desktop:
- Full language selector appears in the top sidebar header next to Log out.

Login screen:
- A language selector is also available before signing in.

PERSISTENCE
The chosen UI language is stored locally on that browser/device using localStorage.
It is not stored in the WATranslate database.
Different agents/devices can therefore use different UI languages.

IMPORTANT
The UI language is independent from message translation.
Changing the interface to German or Spanish does NOT change the existing WATranslate workflow:
- incoming customer messages are translated to Russian for the agent
- agent replies are written in Russian
- outgoing replies are translated to the customer's language

TRANSLATED UI AREAS
- login screen
- Chats / Archived
- search
- archive / restore / delete menus
- conversation states
- Show original / Show Russian draft
- reply language controls
- Translate / preview / Send / Cancel
- message delivery/read statuses
- installation / Add to Home Screen instructions
- common alerts and action/status messages

FILES TO OVERWRITE
public/index.php
assets/app.js
public/assets/app.js
service-worker.js

FILES TO ADD
assets/ui-language-v4.4.css
public/assets/ui-language-v4.4.css

NO BACKEND CHANGES
No SQL required.
Do not change api.php, public/api.php, public/webhook.php, config.php, src/, Google or Meta settings.

INSTALL
1. Back up the current WATranslate folder.
2. Upload this ZIP to public_html/whatsapp-server-translator/
3. Extract and overwrite.
4. Fully close the WATranslate Home Screen app from the iPhone app switcher.
5. Re-open WATranslate from its Home Screen icon.
6. The first/default language is English.
7. Switch EN / RU / DE / ES directly from the header.
