()
| 3109 | Goals: |
| 3110 | - Avoid breaking attributes/URLs (e.g., logo src) by never doing whole-document replaces. |
| 3111 | - Keep specific labels as requested: |
| 3112 | * Theme button text must stay exactly: 'Theme' |
| 3113 | * Language toggle button shows the target language: |
| 3114 | - English UI -> 'Ελληνικά' |
| 3115 | - Greek UI -> 'English' |
| 3116 | """ |
| 3117 | try: |
| 3118 | lang = get_lang() |
| 3119 | if not resp.mimetype or "text/html" not in resp.mimetype: |
| 3120 | return resp |
| 3121 | |
| 3122 | body = resp.get_data(as_text=True) |
| 3123 |
nothing calls this directly
no test coverage detected