Skip to content

Load translations on demand - #1694

Open
Arnei wants to merge 1 commit into
opencast:developfrom
Arnei:lazy-load-translations
Open

Arnei wants to merge 1 commit into
opencast:developfrom
Arnei:lazy-load-translations

Conversation

@Arnei

@Arnei Arnei commented Nov 16, 2026

Copy link
Copy Markdown
Member

Bundle only the English translation and fetch other languages when they are used, which makes the bundle about 0.9 MB smaller.

How to test this

Test that language switching still works and that the selected language survives a reload. Can also check the network tab for requests (disable caching). I also ran this in an actual Opencast to make sure the requests went through.

AI Usage

Used Claude Sonnet 5 to implement lazy loading.

Bundle only the English translation and fetch other languages when they are used, which makes the bundle about 0.9 MB smaller.

This commit was AI generated
@Arnei Arnei added the type:code-enhancement Internal improvements to the codebase label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Use docker or podman to test this pull request locally.

Run test server using develop.opencast.org as backend:

podman run --rm -it -p 127.0.0.1:3000:3000 

Specify a different backend like stable.opencast.org:

podman run --rm -it -p 127.0.0.1:3000:3000 -e PROXY_TARGET=https://stable.opencast.org 

It may take a few seconds for the interface to spin up.
It will then be available at http://127.0.0.1:3000.
For more options you can pass on to the proxy, take a look at the README.md.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request is deployed at test.admin-interface.opencast.org/1694/2026-11-16_12-55-31/ .
It might take a few minutes for it to become available.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:conflicts type:code-enhancement Internal improvements to the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant