Describe the issue
When going to a widgets page (/widgets/<project>), the live preview looks weird and the "embed code" field is empty.
However, if I copy the contents of /static/js/widgets.js and execute it in the console, the page works fine.
I already tried
Steps to reproduce the behavior
- Go to the widgets page
- See that it seems to be broken
Expected behavior
The script should be executed at a later time so that the jQuery variable ($) is available.
Screenshots
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
- Weblate: 5.12.2
- Django: 5.2.4
- siphashc: 2.5
- translate-toolkit: 3.15.6
- lxml: 5.4.0
- pillow: 11.3.0
- nh3: 0.2.22
- python-dateutil: 2.9.0.post0
- social-auth-core: 4.7.0
- social-auth-app-django: 5.5.1
- django-crispy-forms: 2.4
- oauthlib: 3.3.1
- django-compressor: 4.5.1
- djangorestframework: 3.16.0
- django-filter: 25.1
- django-appconf: 1.1.0
- user-agents: 2.2.0
- filelock: 3.18.0
- RapidFuzz: 3.13.0
- openpyxl: 3.1.5
- celery: 5.5.3
- django-celery-beat: 2.8.1
- kombu: 5.5.4
- translation-finder: 2.22
- weblate-language-data: 2025.8
- html2text: 2025.4.15
- pycairo: 1.28.0
- PyGObject: 3.52.3
- diff-match-patch: 20241021
- requests: 2.32.4
- django-redis: 6.0.0
- hiredis: 3.2.1
- sentry-sdk: 2.33.2
- Cython: 3.1.2
- mistletoe: 1.4.0
- GitPython: 3.1.45
- borgbackup: 1.4.1
- pyparsing: 3.2.3
- ahocorasick_rs: 0.22.2
- python-redis-lock: 4.0.0
- charset-normalizer: 3.4.2
- cyrtranslit: 1.1.1
- drf-spectacular: 0.28.0
- Python: 3.13.3
- Git: 2.50.1
- psycopg: 3.2.9
- psycopg-binary: 3.2.9
- phply: 1.2.6
- ruamel.yaml: 0.18.14
- tesserocr: 2.8.0
- boto3: 1.39.12
- aeidon: 1.15
- iniparse: 0.5
- mysqlclient: 2.2.7
- google-cloud-translate: 3.21.1
- openai: 1.97.1
- Mercurial: 7.0.3
- git-svn: 2.50.1
- git-review: 2.5.0
- PostgreSQL server: 16.9
- Database backends: django.db.backends.postgresql
- PostgreSQL implementation: psycopg3 (binary)
- Cache backends: default:RedisCache, avatar:FileBasedCache
- Email setup: django.core.mail.backends.smtp.EmailBackend: nope
- OS encoding: filesystem=utf-8, default=utf-8
- Celery: redis://cache:6379/1, redis://cache:6379/1, regular
- Platform: Linux 6.12.22-1-lts (x86_64)
Weblate deploy checks
SystemCheckError: System check identified some issues:
ERRORS:
?: (weblate.E011) E-mail addresses for site admins is misconfigured
HINT: https://docs.weblate.org/en/weblate-5.12.2/admin/install.html#production-admins
INFOS:
?: (weblate.I021) Error collection is not set up, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-5.12.2/admin/install.html#collecting-errors
?: (weblate.I028) Backups are not configured, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-5.12.2/admin/backup.html
System check identified 3 issues (5 silenced).
Additional context
No response
Describe the issue
When going to a widgets page (
/widgets/<project>), the live preview looks weird and the "embed code" field is empty.However, if I copy the contents of
/static/js/widgets.jsand execute it in the console, the page works fine.I already tried
Steps to reproduce the behavior
Expected behavior
The script should be executed at a later time so that the jQuery variable (
$) is available.Screenshots
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
Weblate deploy checks
Additional context
No response